aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-07 13:12:05 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-07 13:31:38 +0200
commit14b9352b9b7a4084f72209ba686170e313f7863b (patch)
tree1745bb01d22926a7a7927788b4b8a89562dfb3dc
parentf542ceb8014437a089175eac463e1fbf7cf520fd (diff)
downloaddokka-14b9352b9b7a4084f72209ba686170e313f7863b.tar.gz
dokka-14b9352b9b7a4084f72209ba686170e313f7863b.tar.bz2
dokka-14b9352b9b7a4084f72209ba686170e313f7863b.zip
Lazily configure integration test tasks
-rw-r--r--integration-tests/build.gradle.kts2
-rw-r--r--integration-tests/cli/build.gradle.kts2
-rw-r--r--integration-tests/gradle/build.gradle.kts14
3 files changed, 9 insertions, 9 deletions
diff --git a/integration-tests/build.gradle.kts b/integration-tests/build.gradle.kts
index 44da74cf..70b6db26 100644
--- a/integration-tests/build.gradle.kts
+++ b/integration-tests/build.gradle.kts
@@ -18,7 +18,7 @@ subprojects {
implementation(project(":integration-tests"))
}
- val integrationTest = task<Test>("integrationTest") {
+ val integrationTest by tasks.register<Test>("integrationTest") {
maxHeapSize = "2G"
description = "Runs integration tests."
group = "verification"
diff --git a/integration-tests/cli/build.gradle.kts b/integration-tests/cli/build.gradle.kts
index c3e98d0a..f825a148 100644
--- a/integration-tests/cli/build.gradle.kts
+++ b/integration-tests/cli/build.gradle.kts
@@ -23,7 +23,7 @@ val basePluginShadow: Configuration by configurations.creating
dependencies {
basePluginShadow(project(":plugins:base"))
}
-val basePluginShadowJar = tasks.create("basePluginShadowJar", ShadowJar::class) {
+val basePluginShadowJar by tasks.register("basePluginShadowJar", ShadowJar::class) {
configurations = listOf(basePluginShadow)
archiveFileName.set("fat-base-plugin-$dokka_version.jar")
archiveClassifier.set("")
diff --git a/integration-tests/gradle/build.gradle.kts b/integration-tests/gradle/build.gradle.kts
index 2c526af7..28e20cf9 100644
--- a/integration-tests/gradle/build.gradle.kts
+++ b/integration-tests/gradle/build.gradle.kts
@@ -6,13 +6,13 @@ dependencies {
implementation(gradleTestKit())
}
-val integrationTest by tasks.integrationTest
-integrationTest.inputs.dir(file("projects"))
-
-rootProject.allprojects.forEach { otherProject ->
- otherProject.invokeWhenEvaluated { evaluatedProject ->
- evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask ->
- integrationTest.dependsOn(publishingTask)
+tasks.integrationTest {
+ inputs.dir(file("projects"))
+ rootProject.allprojects.forEach { otherProject ->
+ otherProject.invokeWhenEvaluated { evaluatedProject ->
+ evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask ->
+ this.dependsOn(publishingTask)
+ }
}
}
}