add application plugin to gradle
to allows testing the shell easily
This commit is contained in:
@@ -21,6 +21,7 @@ apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
apply from: "$rootDir/maven.gradle"
|
||||
apply plugin: 'docbook-reference'
|
||||
apply plugin: 'application'
|
||||
|
||||
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:-serial"]
|
||||
|
||||
@@ -149,7 +150,7 @@ task schemaZip(type: Zip) {
|
||||
}
|
||||
}
|
||||
|
||||
task distZip(type: Zip, dependsOn: [jar, docsZip, sourcesJar, javadocJar]) {
|
||||
task distroZip(type: Zip, dependsOn: [jar, docsZip, sourcesJar, javadocJar]) {
|
||||
group = 'Distribution'
|
||||
classifier = 'dist'
|
||||
description = "Builds -${classifier} archive, containing all jars and docs, " +
|
||||
@@ -188,7 +189,7 @@ artifacts {
|
||||
|
||||
archives docsZip
|
||||
// archives schemaZip
|
||||
archives distZip
|
||||
archives distroZip
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
@@ -196,5 +197,8 @@ task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.0'
|
||||
}
|
||||
|
||||
|
||||
mainClassName = "org.springframework.shell.Bootstrap"
|
||||
|
||||
assemble.dependsOn = ['jar', 'sourcesJar']
|
||||
defaultTasks 'build'
|
||||
Reference in New Issue
Block a user