Skip to content

Commit

Permalink
put phloc-schematron into thin jar as it is not available in jcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgeiger committed Oct 13, 2015
1 parent 4961bb7 commit 4bc1775
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ bintray {
}
}

configurations {
compile
external
}

repositories {
jcenter()
Expand All @@ -74,9 +78,11 @@ dependencies {
compile 'commons-cli:commons-cli:1.3.+'
compile 'org.apache.velocity:velocity:1.7'

compile files(fileTree(dir: "lib", includes: ['*.jar']))
external files(fileTree(dir: "lib", includes: ['*.jar']))

testCompile 'junit:junit:4.+'

compile configurations.external
}


Expand All @@ -103,7 +109,8 @@ tasks.withType(JavaCompile) {
jar.archiveName = "BPMNspector.jar"

jar {
manifest { attributes 'Main-Class': mainClassName }
manifest { attributes 'Main-Class': mainClassName }
from { configurations.external.collect { it.isDirectory() ? it : zipTree(it) } }
}

task sourceJar(type: Jar) {
Expand All @@ -112,7 +119,7 @@ task sourceJar(type: Jar) {
}

task javadocJar(type: Jar, dependsOn: javadoc) {
baseName = project.name + '-sources'
baseName = project.name + '-javadoc'
from javadoc.destinationDir
}

Expand Down

0 comments on commit 4bc1775

Please sign in to comment.