2020-01-06 21:14:04 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
version = '1.0'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-02-21 12:43:40 +00:00
|
|
|
compile libs.minimal_json
|
|
|
|
testCompile libs.testng
|
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-01-06 21:14:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
dirs "${buildDir}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|