aboutsummaryrefslogtreecommitdiff
path: root/gradle
diff options
context:
space:
mode:
authorDierk König <dierk.koenig@canoo.com>2015-11-18 15:07:09 +0100
committerDierk König <dierk.koenig@canoo.com>2015-11-18 15:07:09 +0100
commitfa6dce676590c83bc84d130e1241cf585f88a469 (patch)
tree5a6227a8f7417a4cca0a522fe3e9ecf83bcc469a /gradle
parent59e5aa6a100ad84dd16545d8ef35a80b0af35195 (diff)
parentda9a1b100639e7eb5a7986952f5a1f3ba0d675e6 (diff)
downloadfrege-gradle-plugin-fa6dce676590c83bc84d130e1241cf585f88a469.tar.gz
frege-gradle-plugin-fa6dce676590c83bc84d130e1241cf585f88a469.tar.bz2
frege-gradle-plugin-fa6dce676590c83bc84d130e1241cf585f88a469.zip
Merge pull request #27 from breskeby/integ-test-infra
Add infrastructure for having integration tests
Diffstat (limited to 'gradle')
-rw-r--r--gradle/integTest.gradle50
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin53636 -> 53636 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties4
3 files changed, 52 insertions, 2 deletions
diff --git a/gradle/integTest.gradle b/gradle/integTest.gradle
new file mode 100644
index 0000000..07b0743
--- /dev/null
+++ b/gradle/integTest.gradle
@@ -0,0 +1,50 @@
+sourceSets {
+ integTest {
+ compileClasspath += main.output + test.output
+ runtimeClasspath += main.output + test.output
+ }
+}
+
+configurations {
+ integTestCompile.extendsFrom testCompile
+ integTestRuntime.extendsFrom testRuntime
+}
+
+task integTest(type: Test) {
+ shouldRunAfter 'test'
+ testClassesDir = sourceSets.integTest.output.classesDir
+ classpath = sourceSets.integTest.runtimeClasspath
+
+}
+check.dependsOn(integTest)
+
+plugins.withType(org.gradle.plugins.ide.idea.IdeaPlugin) {
+ idea {
+ module {
+ testSourceDirs += sourceSets.integTest.groovy.srcDirs
+ testSourceDirs += sourceSets.integTest.resources.srcDirs
+ scopes.TEST.plus.add(configurations.integTestCompile)
+ scopes.TEST.plus.add(configurations.integTestRuntime)
+ }
+ }
+}
+
+
+// START SNIPPET test-logic-classpath
+// Write the plugin's classpath to a file to share with the tests
+task createClasspathManifest {
+ def outputDir = file("$buildDir/$name")
+
+ inputs.files sourceSets.main.runtimeClasspath
+ outputs.dir outputDir
+
+ doLast {
+ outputDir.mkdirs()
+ file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
+ }
+}
+
+// Add the classpath file to the test runtime classpath
+dependencies {
+ integTestRuntime files(createClasspathManifest)
+} \ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index fd7e590..9411448 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 6e80329..2aae013 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Thu Sep 03 23:57:28 CEST 2015
+#Wed Nov 18 11:44:20 WET 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip