-
-
Notifications
You must be signed in to change notification settings - Fork 448
Closed as not planned
Closed as not planned
Copy link
Labels
FG6This request is for FG 6This request is for FG 6
Description
Issue Description
Adding the Google Cloud Vertex AI library for Java to a MDK build.gradle file causes a runtime error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.bootstrap.Bootstrap.bootstrapMain(Bootstrap.java:133)
at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:53)
at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:19)
Caused by: java.lang.module.ResolutionException: Modules gax.grpc and proto.google.common.protos export package com.google.longrunning to module io.grpc.util
at java.base/java.lang.module.Resolver.resolveFail(Unknown Source)
at java.base/java.lang.module.Resolver.failTwoSuppliers(Unknown Source)
at java.base/java.lang.module.Resolver.checkExportSuppliers(Unknown Source)
at java.base/java.lang.module.Resolver.finish(Unknown Source)
at java.base/java.lang.module.Configuration.<init>(Unknown Source)
at java.base/java.lang.module.Configuration.resolveAndBind(Unknown Source)
at java.base/java.lang.module.Configuration.resolveAndBind(Unknown Source)
at net.minecraftforge.bootstrap@2.1.7/net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:166)
... 5 moreRepro steps
- Download the current MDK and go through set up steps.
- Add the following code to build.gradle.
minecraftLibrary platform('com.google.cloud:libraries-bom:26.59.0')
minecraftLibrary("com.google.cloud:google-cloud-vertexai:1.20.1")
minecraftLibrary("com.google.api.grpc:proto-google-cloud-vertexai-v1:1.1.0")
- Run the
runClientGradle task.
Expected result: Minecraft launches
Actual result: runtime error (see issue description).
Environment
- MacOS
- VSCode
- Vertex AI library v1.20.1
- MDK downloaded from Forge site
Troubleshooting steps:
I have looked on the ForgeGradle public forum and found similar issues:
- https://forums.minecraftforge.net/topic/123078-problem-with-adding-wthit-as-dependency-solved/#comment-535211
- https://forums.minecraftforge.net/topic/119601-cant-include-dependency/#comment-524370
Steps tried to fix this issue:
- Changed the order of the Gradle plugins in my build.gradle
- Added an
excludeblock to myminecraftLibrarydependencies - Changed Gradle version
- Reviewed documentation, including this page
Suggestions
I don't know what the root cause of this issue is, although I suspect that it might be related to the issue discussed in #624 . I would update the public documentation for ForgeGradle to include troubleshooting tips or work arounds for this issue. If this is a known issue, then it should be stated.
Metadata
Metadata
Assignees
Labels
FG6This request is for FG 6This request is for FG 6