So we updated a bit our Kotlin Script. We get an i...
# gradle
d
So we updated a bit our Kotlin Script. We get an issue but we don’t know how to locate the issue:
Copy code
* What went wrong:
org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapperKt.getKotlinPluginVersion(Lorg/gradle/api/Project;)Ljava/lang/String;
This method exist in new kotlin plugin version (1.2.61) but our build depends on the version (1.2.51) where the version doesn’t exist. The thing is: we don’t understand why it depends of the version 1.2.51 because we explicitly ask to use the 1.2.61 version. (maybe we made a mistake somewere, but we never use 1.2.51 anywhere in our build...) When running
./gradlew build --debug
, we get this:
Copy code
15:38:05.214 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve kotlin-scripting-gradle.jar (org.jetbrains.kotlin:kotlin-scripting-gradle:1.2.51)' completed
There is no new version of
kotlin-scripting-gradle
. Could you give us a tip to find what trying to use this dependency?
r
What is
kotlin-scripting-gradle
?
d
We don’t know 👀 Is it something needed by the
kotlin
plugin? by the
kotlin-dsl
plugin? by gradle? (we’re using gradle 4.10.2). We dont’ declare it. But this is the first things with the version 1.2.51 we get from the logs by running gradle with
--debug
r
Hmm Gradle 4.10.2 should have kotlin-dsl RC6 which depends on Kotlin 1.2.61, so not problem here
Try to print your dependencies tree maybe?
d
it crash before it 😛 But there is something strange too: in the debug log, I got this too:
Copy code
15:38:03.074 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve gradle-kotlin-dsl-plugins.jar (gradle.plugin.org.gradle.kotlin:gradle-kotlin-dsl-plugins:1.0-rc-5)' completed
But if I run `gradlew --version`:
Copy code
------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_171 (Oracle Corporation 25.171-b11)
OS:           Mac OS X 10.13.6 x86_64
Something use old component but I don’t know which one (and how to find it)
r
Ok yeah this is weird