Possible Kotlin 2.1.21 Issue: Has anyone run into ...
# server
a
Possible Kotlin 2.1.21 Issue: Has anyone run into the following error with Kotlin 2.1.21? My coworker can build our projects after upgrading, but I cannot and we haven't yet been able to identify the difference. I am able to build projects if I downgrade to 2.1.20. We use gradle wrapper and are on the same Gradle versions as well. I know this particular feature relates to changes made in these versions. We're on Gradle 8.14.1 now, but have tried all the way back to 8.12.1.
Unable to find method ''org.gradle.internal.buildoption.BuildOption$Value org.gradle.api.internal.StartParameterInternal.getIsolatedProjects()''
Small addition: This occurs in all of my projects...server, simple cli utilities, libraries, etc. Anywhere I use
2.1.21
I get the same error. Thanks for any help in advance.
k
I don't know Gradle well enough to help you, but you haven't said what the error is.
a
My apologies and thanks for the heads up. The whole thing didn't paste and I've edited it to include it
e
Hey! Could you run it with a
--stacktrace
and post the result?
a
Sure. I'm on that now. I just realized there is a #C19FD9681 channel so I was going to move this issue there if it makes sense to do so.
I'm also going to check out one gradle plugin I know we use even though our other teammate has it working fine.
Please see the attached
--stacktrace
output. I did replace the absolute path to the build.gradle.kts file to prevent path disclosure, but line 9 points directly to the line applying the kotlin plugin. I tried also updating our internal gradle plugin that we use to standardize some projects, but got the exact same error on that too. Happy to share more privately if needed too! Thanks for taking a look @e5l!
e
Could you tell me if isolated projects option is enabled in gradle?
a
Hi @e5l. I just tested all combinations of the following two properties and I get the same error. I tried them both in the
projectfolder/gradle.properties
and in my home folder
~/.gradle/gradle.properties
on my linux system.
Copy code
# 20250529: Gradle Isolated Projects Feature
org.gradle.unsafe.isolated-projects=false
# 20250529: Kotlin 2.1.20: Isolated Projects Support
kotlin.kmp.isolated-projects.support=enable
To be clear, I tried the following combinations: • true/enable both • false/disable both • false gradle, enable kmp • true gradle, false kmp Worth noting, this project that I'm testing with is not a KMP project for simplicity, it is a kotlin library for jvm.
😞 1
Let me know if there's anything else I can provide @e5l. I would love to solve this, but I'm still stumped and I've got a pretty good handle on Gradle, written custom plugins before, etc. so I suspect its something obvious on our end or a simple bug in gradle/kotlin that I'm missing. I appreciate you're help even if we don't make it to a solution.
Same error after deleting my entire .gradle folder in the project and my home folder so all dependencies, gradle versions, etc. would be reloaded.