Browse Source

Added task to create distribution bundle.

pull/57/head
Kalle Stenflo 10 years ago
parent
commit
17ed1b71e7
  1. 59
      json-path/build.gradle

59
json-path/build.gradle

@ -20,3 +20,62 @@ dependencies {
testCompile libs.test
}
task distZip(type: Zip, dependsOn: assemble) {
classifier = 'with-dependencies'
from('build/docs') {
into 'api'
}
from(sourcesJar) {
into 'source'
}
from(jar) {
into 'lib'
}
from(project.configurations.compile) {
into 'lib'
exclude { it.file.name.contains('gson') || it.file.name.contains('jackson') }
}
from(project.configurations.compile) {
into 'lib-optional/jackson'
include { it.file.name.contains('jackson') }
}
from(project.configurations.compile) {
into 'lib-optional/gson'
include { it.file.name.contains('gson') }
}
}
task distTar(type: Tar, dependsOn: assemble) {
classifier = 'with-dependencies'
compression = Compression.GZIP
extension = 'tar.gz'
from('build/docs') {
into 'api'
}
from(sourcesJar) {
into 'source'
}
from(jar) {
into 'lib'
}
from(project.configurations.compile) {
into 'lib'
exclude { it.file.name.contains('gson') || it.file.name.contains('jackson') }
}
from(project.configurations.compile) {
into 'lib-optional/jackson'
include { it.file.name.contains('jackson') }
}
from(project.configurations.compile) {
into 'lib-optional/gson'
include { it.file.name.contains('gson') }
}
}
task dist(){
}
dist.dependsOn distZip
dist.dependsOn distTar

Loading…
Cancel
Save