2020-01-06 21:14:04 +00:00
|
|
|
apply plugin: 'java'
|
2020-11-10 20:39:47 +00:00
|
|
|
version = '2.0.0'
|
2020-01-06 21:14:04 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-15 21:49:37 +00:00
|
|
|
compile 'com.eclipsesource.minimal-json:minimal-json:0.9.5', 'com.beust:jcommander:1.72', 'org.bouncycastle:bcmail-jdk15on:1.59'
|
|
|
|
testCompile 'org.testng:testng:6.8.8'
|
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}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|