Trying to use kotlinx immutable collections. As it...
# announcements
n
Trying to use kotlinx immutable collections. As it says, I've added
implementation "org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3"
to my gradle file, but it still can't seem to import. How should I debug this?
h
A chance that you forgot to add repositories { jcenter() } As stated in the documentation?
n
Nope, I have that
Copy code
plugins {
    id 'org.jetbrains.kotlin.jvm' version '1.4.0'
}

group 'org.example'
version '1.0-SNAPSHOT'

apply plugin: 'kotlin-kapt'

repositories {
    mavenCentral()
    jcenter()
    maven { url "<https://dl.bintray.com/arrow-kt/arrow-kt/>" }
    maven { url "<https://oss.jfrog.org/artifactory/oss-snapshot-local/>" } // for SNAPSHOT builds
}


def arrow_version = "0.11.0"

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.0"
    implementation "io.arrow-kt:arrow-optics:$arrow_version"
    implementation "io.arrow-kt:arrow-syntax:$arrow_version"
    implementation "org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3"
    kapt    "io.arrow-kt:arrow-meta:$arrow_version"
}
h
Normally you debug those things first with a ./gradlew build and show us the complete error :)
n
how do I do a gradlew build from the IDE?
hmm, it's possible that it's working now 🙂
h
No, i meant from cmd, i usually suggest that when i have the impression that it's only the ide that's faulty, Not the project itself :) When it works now, also okay