diff --git a/build.gradle b/build.gradle index 48a9c71..6f80c11 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'application' mainClassName = 'ExperimentMain' +version = '0.0.2' sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' @@ -28,3 +29,19 @@ dependencies { implementation 'org.json:json:20180813' testImplementation group: 'junit', name: 'junit', version: '4.10' } + +jar { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + archiveClassifier = 'full' + manifest { + attributes( + 'Main-Class': mainClassName + ) + } + from sourceSets.main.output + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } + } + exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' +}