You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.0 KiB
83 lines
2.0 KiB
apply from: "$rootDir/gradle/publishMaven.gradle" |
|
|
|
|
|
displayName = "Json Path" |
|
|
|
description = "Java port of Stefan Goessner JsonPath." |
|
|
|
jar { |
|
baseName 'json-path' |
|
manifest { |
|
attributes 'Implementation-Title': 'json-path', 'Implementation-Version': version |
|
instruction 'Import-Package', 'com.google.gson.*;resolution:=optional', 'com.fasterxml.jackson.*;resolution:=optional', 'net.minidev.json.*;resolution:=optional', '*' |
|
} |
|
} |
|
|
|
dependencies { |
|
compile libs.jsonSmart |
|
compile libs.slf4jApi |
|
compile libs.jacksonDatabind, optional |
|
compile libs.gson, optional |
|
|
|
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
|
|
|