With a JPMS enabled gradle multi-project I fail to build a fat jar using this plugin and the Gradle shadow plugin.
I created a minimal test project to showcase the error https://github.com/MikaelAmborn/javamodules. Clone it and run ./gradlew shadowJar and it will fails on ExtraModuleInfoTransform.java:85 with this error:
Could not determine the dependencies of task ':app:shadowJar'.
> Could not resolve all files for configuration ':app:runtimeClasspath'.
> Failed to transform utilities.jar (project :utilities) to match attributes {artifactType=jar, javaModule=true, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=11, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for ExtraModuleInfoTransform: /Users/mikaelamborn/development/javamodules/utilities/build/libs/utilities.jar.
> java.io.FileNotFoundException: /Users/mikaelamborn/development/javamodules/utilities/build/libs/utilities.jar (No such file or directory)
But if you first build a jar for the utilities project with ./gradlew utilities:jar and then ./gradlew shadowJar everything works.
Could it be related to gradle/gradle#10484?
With a JPMS enabled gradle multi-project I fail to build a fat jar using this plugin and the Gradle shadow plugin.
I created a minimal test project to showcase the error https://github.com/MikaelAmborn/javamodules. Clone it and run
./gradlew shadowJarand it will fails onExtraModuleInfoTransform.java:85with this error:But if you first build a jar for the
utilitiesproject with./gradlew utilities:jarand then./gradlew shadowJareverything works.Could it be related to gradle/gradle#10484?