2020-01-06 21:14:04 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-03-04 15:18:13 +00:00
|
|
|
compile 'javax.json:javax.json-api:1.1.4', 'org.glassfish:javax.json:1.1.4', 'com.beust:jcommander:1.72', 'org.bouncycastle:bcmail-jdk15on:1.59'
|
2020-06-15 21:49:37 +00:00
|
|
|
testCompile 'org.testng:testng:6.8.8'
|
2020-01-06 21:14:04 +00:00
|
|
|
}
|
|
|
|
|
2022-08-26 05:29:01 +00:00
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams true
|
|
|
|
}
|
|
|
|
|
2020-01-06 21:14:04 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
2020-02-21 12:43:40 +00:00
|
|
|
attributes("Main-Class": "hirs.swid.Main",
|
|
|
|
"Class-Path": configurations.runtime.files.collect { "lib/$it.name" }.join(' ')
|
|
|
|
)
|
2020-01-06 21:14:04 +00:00
|
|
|
}
|
2020-02-21 12:43:40 +00:00
|
|
|
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {}
|
2020-03-11 17:02:43 +00:00
|
|
|
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
|
2020-01-06 21:14:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
dirs "${buildDir}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|