Skip to content

Commit

Permalink
Building fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
noconnor committed Oct 28, 2017
1 parent fc62d54 commit c222634
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit c222634

Please sign in to comment.