Skip to content

Commit

Permalink
Gradle: do not depend on compile-only artifacts in the fat jars
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Jan 25, 2025
1 parent 2df2b65 commit 458864b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions buildSrc/src/main/groovy/echosvg.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,10 @@ tasks.register("${project.name}-jar-with-deps", Jar) {

archiveClassifier = 'with-deps'

dependsOn configurations.compileClasspath
dependsOn configurations.runtimeClasspath

doFirst {
from sourceSets.main.output
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
Expand Down

0 comments on commit 458864b

Please sign in to comment.