Created
March 4, 2011 04:51
-
-
Save kellyrob99/854187 to your computer and use it in GitHub Desktop.
Gives a Gradle build with IDE and maven support, ready to go for Geb and Spock and the Firefox web driver.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'groovy' | |
apply plugin: 'idea' | |
apply plugin: 'maven' | |
apply plugin: 'eclipse' | |
apply plugin: 'project-report' | |
version = '1.0-SNAPSHOT' | |
group = '' | |
versions = [ | |
groovy: '1.7.8', | |
geb: 'latest.release'] | |
libraries = [ | |
groovy: "org.codehaus.groovy:groovy:${versions.groovy}", | |
geb: ["org.codehaus.geb:geb-core:${versions.geb}", | |
"org.codehaus.geb:geb-spock:${versions.geb}", | |
"org.seleniumhq.selenium:selenium-firefox-driver:2.0b1"], | |
spock: "org.spockframework:spock-core:0.5-groovy-1.7", | |
ivy: "org.apache.ivy:ivy:2.0.0" | |
] | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} | |
dependencies { | |
compile libraries.ivy | |
testCompile libraries.geb | |
testCompile libraries.spock | |
testCompile 'junit:junit:4.8.2' | |
groovy libraries.groovy | |
} | |
apply from: 'https://gist.github.com/raw/4dbb33a080afde1bef66/461d2be985e67d11c6e8f947ed7f5c1b6ed9c175/gradleTest' | |
ideaProject { | |
downloadJavadoc = true | |
withXml { provider -> | |
def root = provider.asNode() | |
root.component.find { it.@name == 'VcsDirectoryMappings' }.mapping[0].@vcs = 'svn' | |
// Set gradle home | |
def gradleSettings = root.appendNode('component', [name: 'GradleSettings']) | |
gradleSettings.appendNode('option', [name: 'SDK_HOME', value: gradle.gradleHomeDir.absolutePath]) | |
} | |
whenConfigured { project -> | |
project.jdk.languageLevel = 'JDK_1_6' | |
project.jdk.projectJdkName = '1.6' | |
} | |
} | |
eclipse { | |
downloadJavadoc = true | |
} | |
task wrapper(type: Wrapper) { | |
version = '1.0-milestone-1' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment