|
|
|
@ -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 |
|
|
|
|