Kotlin: Unresolved reference: jetbrains
Answered
Hello,
I'm attempting to build a Spek "specification" for a Kotlin class that I wrote. The project uses maven and has the correct folder structure ('src/main/kotlin' and 'src/main/test/kotlin'). My pom.xml file has the following dependencies:
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>${kotlin.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jetbrains.spek/spek-api -->
<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-api</artifactId>
<version>1.1.5</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jetbrains.spek/spek-junit-platform-engine -->
<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-junit-platform-engine</artifactId>
<version>1.1.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
I also have the Spek plugin installed in IntelliJ.
When I attempt to run my Spek class, I recieve the error "Kotlin: Unresolved reference: jetbrains".
Please help!
Please sign in to leave a comment.
Please file a bug at https://youtrack.jetbrains.com/newIssue?project=KT with the sample project attached.
Hi Serge,
I don't think this is a bug because I am new to IntelliJ and there is a good chance that I simply missed a step when setting up my project. I do not want to falsely report a bug. Are you aware of any good references for creating Spek tests in InitelliJ?
Thanks,
Eddie
I don't know any other guide except https://spekframework.github.io/spek/docs/latest/ .
It may help if you share a sample project to illustrate the issue.