Skip to content

Instantly share code, notes, and snippets.

/gist:8397963

Created Jan 13, 2014
Embed
What would you like to do?
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