Skip to content

Instantly share code, notes, and snippets.

@samrocketman
Created January 17, 2015 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samrocketman/06d4cfc37e1e1c453db5 to your computer and use it in GitHub Desktop.
Save samrocketman/06d4cfc37e1e1c453db5 to your computer and use it in GitHub Desktop.
A failing test case for extended properties in build -> dependencies section of gradle.
apply plugin: 'groovy'
ext { groovyVersion = "1.8.9" }
println "Using Groovy ${project.groovyVersion}"
buildscript {
repositories { mavenCentral() }
dependencies {
//classpath "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
}
repositories { mavenCentral() }
dependencies {
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
testCompile 'junit:junit:4.11'
testCompile "org.codehaus.groovy:groovy:${groovyVersion}"
}
//http://www.gradle.org/docs/current/userguide/gradle_wrapper.html
//generate gradlew with: gradle wrapper
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment