Files
spring-shell/samples/helloworld/build.gradle
2012-04-11 10:38:10 +08:00

39 lines
1009 B
Groovy

description = 'Hello World - Spring Shell'
version = "$helloworldVersion"
apply plugin: 'base'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenLocal()
mavenCentral()
// Public Spring artifacts
mavenRepo name: "spring-release", urls: "http://repo.springsource.org/release"
mavenRepo name: "spring-milestone", urls: "http://repo.springsource.org/milestone"
mavenRepo name: "spring-snapshot", urls: "http://repo.springsource.org/snapshot"
}
dependencies {
compile "org.springframework.shell:spring-shell:$springShellVersion"
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-context-support:$springVersion"
}
jar {
dependsOn configurations.runtime
from {
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes("Main-Class": "org.springframework.shell.Bootstrap")
}
}
defaultTasks 'build'