Open TAGC opened 5 years ago
Here's a build scan which might be useful (I added the "application" plugin to the Gradle build script to let me run the main function).
org.jetbrains.kotlin:kotlin-compiler:1.2.51
bundles its dependencies (including Guava) into the JAR, shadowing the "real" Guava; and it probably uses a version of Guava that didn't have that method. It will thus break anything that also depends on Guava (or any other bundled dependency: JNA, JavaSlang, GNU Trove, JANSI, JDOM, etc.)
Either kotlin-compiler
is not meant to be used as a dependency, or they have a packaging issue.
There seems to be some sort of incompatibility issue between this library and "kotlin-compiler". If I try to access operations on
Compiler
(accessed viajavac()
) such aswithProcessors
orwithOptions
, I getNoSuchMethodError
exceptions.This can be minimally reproduced by creating a Gradle project with a
build.gradle.kts
file in the root directory:And then creating a file
src/main/kotlin/experiment.kt
under the project root directory:Running this gives me:
Initially raised at cretz/kastree#4.