Open EchoEllet opened 4 months ago
The stacktrace shows clearly, try
tasks.named("distZip") {
dependsOn(tasks.withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class))
}
The stacktrace shows clearly, try
tasks.named("distZip") { dependsOn(tasks.withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class)) }
Thank you, I will try that, but I'm not sure how it's related to distZib task (it could be that shadowJar depends on distSize but that's already by default). This error only shows when using the exact same module name + .jar
Shadow Version
8.1.1
Gradle Version
8.7
Expected Behavior
Should we be able to use the same module name as jar file? let's say you have a module name called
example-module-name
and the jar file name would beexample-module-name.jar
Actual Behavior
If you use the following:
and run
./gradlew build
you will get the following error:Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)I can't get the jar builded