Skip to content

Instantly share code, notes, and snippets.

Created January 13, 2014 10:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8397963 to your computer and use it in GitHub Desktop.
Save anonymous/8397963 to your computer and use it in GitHub Desktop.
Java Build Tools Report Part 2 - Gradle build script
apply plugin: 'java'
apply plugin: 'war'
apply plugin: HelloPlugin
group = 'org.springframework.samples'
version = '1.0.0-SNAPSHOT'
description = "petclinic"
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceSets {
test {
resources {
srcDir 'src/test/java'
}
}
}
repositories {
maven {
url "http://repo.maven.apache.org/maven2"
}
}
class HelloPlugin implements Plugin<Project> {
void apply(Project project) {
project.task('hello') << {
println "Hello World!"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment