When im using the following dependencies in my pom file:
<properties>
<rxkotlinfx.version>2.2.0</rxkotlinfx.version>
<rxkotlin.version>2.1.0</rxkotlin.version>
<kotlin.version>1.1.51</kotlin.version>
<tornadofx.version>1.7.12</tornadofx.version>
</properties>
<dependencies>
<dependency>
<groupId>com.github.thomasnield</groupId>
<artifactId>rxkotlinfx</artifactId>
<version>${rxkotlinfx.version}</version>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxkotlin</artifactId>
<version>${rxkotlin.version}</version>
</dependency>
<dependency>
<groupId>no.tornado</groupId>
<artifactId>tornadofx</artifactId>
<version>${tornadofx.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
And running the following code:
fun main(args: Array<String>) {
val source = listOf("A", "B", "C").toObservable()
.filter { it == "B" }
.subscribeBy(
onNext = { println(it) }
)
}
Im getting the following error:
Error:(37, 40) Kotlin: Cannot access class 'io.reactivex.Observable'. Check your module classpath for missing or conflicting dependencies
Why am I getting this error and what setup of dependencies do I need to be able to work with this stack?