2020-01-06 16:14:04 -05:00
|
|
|
apply plugin: 'java'
|
|
|
|
version = '1.0'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-02-21 07:43:40 -05:00
|
|
|
compile libs.minimal_json
|
2020-03-11 13:02:43 -04:00
|
|
|
compile libs.jcommander
|
|
|
|
compile libs.bouncy_castle
|
2020-02-21 07:43:40 -05:00
|
|
|
testCompile libs.testng
|
2020-01-06 16:14:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
2020-02-21 07:43:40 -05:00
|
|
|
attributes("Main-Class": "hirs.swid.Main",
|
|
|
|
"Class-Path": configurations.runtime.files.collect { "lib/$it.name" }.join(' ')
|
|
|
|
)
|
2020-01-06 16:14:04 -05:00
|
|
|
}
|
2020-02-21 07:43:40 -05:00
|
|
|
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {}
|
2020-03-11 13:02:43 -04:00
|
|
|
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
|
2020-01-06 16:14:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
dirs "${buildDir}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|