I'm trying to add kotlin locally in my project usi...
# gradle
z
I'm trying to add kotlin locally in my project using
includeBuild
to test some patches but I get some error messages. Is there some way to get it to work?
Copy code
* Exception is:
org.gradle.api.internal.provider.MissingValueException: Cannot query the value of this provider because it has no value available.
	at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateOwnPresentValue(AbstractMinimalProvider.java:82)
	at org.gradle.api.internal.provider.AbstractMinimalProvider.get(AbstractMinimalProvider.java:100)
	at Kotlin_bootstrap_settings_gradle.<init>(kotlin-bootstrap.settings.gradle.kts:301)
	at Program.execute(Unknown Source)
t
some required values from
kotlin.git/gradle.properties
are required to be present in your project
gradle.properties
z
That fixes that error but now theres another. I'm thinking it's gonna just be error after error using includeBuild
Copy code
Circular dependency between the following tasks:
:kotlin:daemon-common:classes
\--- :kotlin:daemon-common:compileJava
     +--- :kotlin:daemon-common:compileKotlin
     |    +--- :kotlin:kotlin-annotations-jvm:jar
     |    |    +--- :kotlin:kotlin-annotations-jvm:classes
     |    |    |    \--- :kotlin:kotlin-annotations-jvm:compileJava
     |    |    |         +--- :kotlin:kotlin-annotations-jvm:compileKotlin
     |    |    |         |    +--- :kotlin:kotlin-daemon-embeddable:embeddable
     |    |    |         |    |    \--- :kotlin:kotlin-daemon:jar
     |    |    |         |    |         +--- :kotlin:daemon-common:jar
     |    |    |         |    |         |    +--- :kotlin:daemon-common:classes (*)
     |    |    |         |    |         |    +--- :kotlin:daemon-common:compileJava (*)
     |    |    |         |    |         |    \--- :kotlin:daemon-common:compileKotlin (*)
     |    |    |         |    |         +--- :kotlin:kotlin-daemon:classes
     |    |    |         |    |         |    \--- :kotlin:kotlin-daemon:compileJava
     |    |    |         |    |         |         +--- :kotlin:daemon-common:jar (*)
     |    |    |         |    |         |         +--- :kotlin:kotlin-annotations-jvm:jar (*)
     |    |    |         |    |         |         +--- :kotlin:kotlin-build-common:jar
     |    |    |         |    |         |         |    +--- :kotlin:kotlin-build-common:classes
     |    |    |         |    |         |         |    |    \--- :kotlin:kotlin-build-common:compileJava
     |    |    |         |    |         |         |    |         +--- :kotlin:kotlin-annotations-jvm:jar (*)
     |    |    |         |    |         |         |    |         +--- :kotlin:kotlin-build-common:compileKotlin
     |    |    |         |    |         |         |    |         |    +--- :kotlin:kotlin-annotations-jvm:jar (*)
     |    |    |         |    |         |         |    |         |    +--- :kotlin:kotlin-daemon-embeddable:embeddable (*)
     |    |    |         |    |         |         |    |         |    +--- :kotlin:kotlin-reflect:compileJava
     |    |    |         |    |         |         |    |         |    |    +--- :kotlin:kotlin-reflect-api:jar
     |    |    |         |    |         |         |    |         |    |    |    +--- :kotlin:kotlin-reflect-api:classes
t
first time I see such error. Maybe indeed it would be easier to use some local maven repo
z
I suppose. was really hoping there was some better way than maven local
t
could you share a Gradle build scan with error? I don't see direct dependency on
kotlin-annotations-jvm
in
daemon-common
🤔
t
ok, looks like a classic Gradle problem in
kotlin.git
- if Gradle sees maven dependency with the same coordinates (except version) as existing project coordinates - Gradle replaces it with project dependency. We are "suffering" from it trying to force Kotlin bootstrap versions. Try to apply something similar in your root project + this settings script.
z
So I tried that and had to add a lot of the other code and its still erroring
sad panda 1