configurations {
truffle
}
dependencies {
truffle "org.graalvm.truffle:truffle-api:23.0.0"
implementation configurations.truffle.dependencies
// ...
}
compileJava {
options.compilerArgs << "--upgrade-module-path=${project.configurations.truffle[0].toURI()}"
}
```I am doing this to make truffle work - however, is there a way to do this in a way that is less hacky.
#--module-upgrade-path without explicitly adding an argument.
13 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @lean oyster! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Why would you need the module upgrade path?
because I use graalvm, and graalvm also has truffle, but only internally. But the compiler finds the jdk internal truffle before the dependency truffle, which is the truffle that actually exports the relevant modules
and you want your project to work without GraalVM as well?
that I don't really care about
oh the graal jvm internal one doesn't export stuff?
Do both modules have the same name?
yes