SalomonBrys / Kotson

Kotlin bindings for JSON manipulation via Gson
MIT License
709 stars 37 forks source link

kotlin version dependency problem in gradle #38

Closed WeAthFoLD closed 6 years ago

WeAthFoLD commented 6 years ago

I use gradle with IDEA. When kotson is included in my gradle project, it automatically introduces Kotlin 1.0.6 dependency. I have to manually do the following, to use kotlin version specified in my own build.gradle:

dependencies {
    // ...
    compile ('com.github.salomonbrys.kotson:kotson:2.5.0') {
        exclude group: "org.jetbrains.kotlin"
        exclude group: "org.jetbrains"
    }
}

I think it's better to avoid dependency to Kt version this library uses in downstream projects if possible.

WeAthFoLD commented 6 years ago

Turns out it's my mistake (?). In official kotlin gradle tutorial, it said I should include kotlin-stdlib dependency, which I didn't. When I included them, the problem is gone.