diff --git a/.gitignore b/.gitignore index 1300379..8bc9195 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/*.log /.classpath /nbproject/ /.project diff --git a/build.gradle b/build.gradle index 98c9dcb..3561ad5 100644 --- a/build.gradle +++ b/build.gradle @@ -37,10 +37,24 @@ task sourcesJar(type: Jar) { classifier = 'sources' from sourceSets.main.allSource } +task uberJar(type: Jar) { + archiveClassifier = 'full' + manifest { + attributes( + 'Class-Path': configurations.compile.collect { it.getName() }.join(' '), + 'Main-Class': mainClassName + ) + } + from sourceSets.main.output + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } + } +} artifacts { //archives javadocJar, sourcesJar - archives sourcesJar + archives sourcesJar,uberJar } jar { diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..832e622 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,3 @@ +action.custom-1=uberJar +action.custom-1.args=uberJar + diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a03e7fb..e3241f3 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ #Thu Jan 23 12:51:32 BRT 2020 -distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStorePath=wrapper/dists