diff --git a/build.gradle b/build.gradle index 34bcf13..03794fd 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,6 @@ plugins { } -//mainClassName = 'org.bdware.sc.ContractProcess' repositories { mavenLocal() mavenCentral() @@ -57,17 +56,36 @@ task classJar(type: Jar, dependsOn: classes) { // classifier = "" //} +//task customFatJar(type: Jar) { +// String libs = '' +// configurations.runtimeClasspath.each { +// libs = libs + " libs/" + it.name +// } +// baseName = 'pure' +// classifier = '' +// manifest { +// attributes 'Manifest-Version': project.version +// attributes 'Main-Class': 'org.bdware.sc.ContractProcess' +// attributes 'Class-Path': libs +// } +// from { +// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } +// } +// with jar +//} + + jar { String libs = '' configurations.runtimeClasspath.each { libs = libs + " libs/" + it.name } from { - configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + // configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } manifest { attributes 'Manifest-Version': project.version - // attributes 'Main-Class': mainClassName + attributes 'Main-Class': 'org.bdware.sc.ContractProcess' attributes 'Class-Path': libs } } @@ -111,7 +129,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } //shadowJar { -// classifier = "jar" +// // classifier = "jar" // dependencies { // include(dependency(fileTree(dir: 'lib', include: '*.jar'))) //// exclude(dependency('com.google.code.gson:gson:2.8.6')) @@ -129,6 +147,7 @@ publishing { artifact sourceJar artifact javadocJar artifact classJar + // artifact customFatJar pom { name = "bdware-cp" description = "cp"