From 97f8f07686aadcbf6840e1749ab37072022827d1 Mon Sep 17 00:00:00 2001 From: Ricardo Almeida Date: Sat, 2 Oct 2021 12:18:46 +0100 Subject: [PATCH] Update build.gradle --- build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index a833905..a52e734 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java' +apply plugin: 'java-library' repositories { mavenCentral() @@ -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 }