From c22263473d705e846ccc9ff0ac904d437685f3b3 Mon Sep 17 00:00:00 2001 From: noconnor Date: Sat, 28 Oct 2017 21:22:18 +0100 Subject: [PATCH] Building fat jar --- build.gradle | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ebcc68e..16588e9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,12 @@ apply plugin: 'java' apply plugin: 'maven' +apply plugin: 'maven-publish' apply plugin: 'signing' apply plugin: 'jacoco' group = 'com.github.noconnor' sourceCompatibility = 1.8 -version = '1.1.1' +version = '1.1.2' repositories { mavenCentral() @@ -20,7 +21,6 @@ dependencies { compile 'junit:junit:4.12' compile 'commons-math:commons-math:1.2' - // Reporting compile "org.jtwig:jtwig-core:5.86.1.RELEASE" compileOnly "org.projectlombok:lombok:1.16.18" @@ -29,6 +29,21 @@ dependencies { testCompile "org.hamcrest:hamcrest-junit:2.0.0.0" } +jar { + baseName "junitperf" + duplicatesStrategy "exclude" + + from { + configurations.runtime.collect { + it.isDirectory() ? it : zipTree(it) + } + } { + exclude "META-INF/*.SF" + exclude "META-INF/*.DSA" + exclude "META-INF/*.RSA" + } +} + task javadocJar(type: Jar) { from javadoc.destinationDir