aboutsummaryrefslogtreecommitdiff
path: root/gradle/integTest.gradle
diff options
context:
space:
mode:
authorThibault Gagnaux <tgagnaux@gmail.com>2021-06-28 11:10:10 +0200
committerThibault Gagnaux <tgagnaux@gmail.com>2021-06-28 11:10:10 +0200
commitf3d085304bad105e65ce0c77f25ae59161fd8776 (patch)
tree92988ca069de5c6cdce67a18971d9ccfb3b0ef85 /gradle/integTest.gradle
parent3be7e4219a15c0939f929c7c0836273f78e3a4f5 (diff)
downloadfrege-gradle-plugin-f3d085304bad105e65ce0c77f25ae59161fd8776.tar.gz
frege-gradle-plugin-f3d085304bad105e65ce0c77f25ae59161fd8776.tar.bz2
frege-gradle-plugin-f3d085304bad105e65ce0c77f25ae59161fd8776.zip
Inits branch with a simple groovy test
Diffstat (limited to 'gradle/integTest.gradle')
-rw-r--r--gradle/integTest.gradle48
1 files changed, 0 insertions, 48 deletions
diff --git a/gradle/integTest.gradle b/gradle/integTest.gradle
deleted file mode 100644
index 2ce286c..0000000
--- a/gradle/integTest.gradle
+++ /dev/null
@@ -1,48 +0,0 @@
-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'
- testClassesDirs = sourceSets.integTest.output.classesDirs
- 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)
- }
- }
-}
-
-
-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")
- }
-}
-
-dependencies {
- testRuntimeOnly files(createClasspathManifest)
- // integTestRuntime files(createClasspathManifest) // old
-}