Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Almeida committed Oct 2, 2021
1 parent 3ca32d0 commit 97f8f07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'java'
apply plugin: 'java-library'

repositories {
mavenCentral()
Expand All @@ -22,7 +22,8 @@ sourceSets {
}

task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.runtimeOnly.collect { it.isDirectory() ? it : zipTree(it) } }
duplicatesStrategy 'exclude'
archiveBaseName = project.name + '-all'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}

0 comments on commit 97f8f07

Please sign in to comment.