diff --git a/build.gradle b/build.gradle index fced7155..f21ec2f8 100644 --- a/build.gradle +++ b/build.gradle @@ -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' \ No newline at end of file