-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[help] how to fix error: class org.graalvm.buildtools.gradle.internal.GraalVMReachabilityMetadataService$Inject cannot be cast to class org.graalvm.buildtools.gradle.in ternal.GraalVMReachabilityMetadataService #706
Comments
Please provide more information about how to reproduce this problem. Which version of Gradle you are using, etc. 4.0.0-M1 is a pre-release of the Gradle Plugin aimed for Micronaut 4. |
I could reproduce and this turns out to be the same issue as gradle/gradle#17559 The workaround is to put the plugins on your build script classpath. |
I ran into this issue in a Gradle multi-project build where there are two Micronaut apps and three command-line tools that are not using Micronaut that needed to include the
instead of:
I'd rather not have those subprojects pick up a Micronaut dependency, but the workaround seems to work. |
* cj-btc-cli * consensusj-jsonrpc (MathTool simple test) * consensusj-jsonrpc-cli Previously these were built by calling `native-image` with `Exec`. Because of these two issues: * micronaut-projects/micronaut-gradle-plugin#706 * gradle/gradle#17559 we're referencing the Micronaut application plugin in the three subprojects rather than the GraalVM Gradle plugin directly.
We ended up using |
Issue description
version => 4.0.0-M1
native build error:
The text was updated successfully, but these errors were encountered: