aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/projects/it-basic
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-02 09:44:50 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-02 12:48:53 +0200
commit3a5de4fada9dae8eb75816abe740152480409165 (patch)
tree0676702e0dcca2b2e8731b30e6b6d5b6c419372c /integration-tests/gradle/projects/it-basic
parent0af0ef9ae462b9153758625410b67d7dc5b57a3d (diff)
downloaddokka-3a5de4fada9dae8eb75816abe740152480409165.tar.gz
dokka-3a5de4fada9dae8eb75816abe740152480409165.tar.bz2
dokka-3a5de4fada9dae8eb75816abe740152480409165.zip
Implement template mechanism for Gradle integration tests
Diffstat (limited to 'integration-tests/gradle/projects/it-basic')
-rw-r--r--integration-tests/gradle/projects/it-basic/build.gradle.kts11
-rw-r--r--integration-tests/gradle/projects/it-basic/settings.gradle.kts24
2 files changed, 2 insertions, 33 deletions
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts
index 80c2bbea..e5a44555 100644
--- a/integration-tests/gradle/projects/it-basic/build.gradle.kts
+++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts
@@ -3,18 +3,9 @@ plugins {
id("org.jetbrains.dokka")
}
-repositories {
- maven("https://dl.bintray.com/kotlin/kotlin-dev/")
- jcenter()
- mavenLocal()
- mavenCentral()
-}
+apply(from = "../template.root.gradle.kts")
dependencies {
implementation(kotlin("stdlib"))
}
-afterEvaluate {
- logger.quiet("Gradle version: ${gradle.gradleVersion}")
- logger.quiet("Kotlin version: ${properties["dokka_it_kotlin_version"]}")
-}
diff --git a/integration-tests/gradle/projects/it-basic/settings.gradle.kts b/integration-tests/gradle/projects/it-basic/settings.gradle.kts
index ca697588..833995e5 100644
--- a/integration-tests/gradle/projects/it-basic/settings.gradle.kts
+++ b/integration-tests/gradle/projects/it-basic/settings.gradle.kts
@@ -1,27 +1,5 @@
@file:Suppress("LocalVariableName", "UnstableApiUsage")
-pluginManagement {
- val dokka_it_kotlin_version: String by settings
-
- plugins {
- id("org.jetbrains.kotlin.jvm") version dokka_it_kotlin_version
- }
-
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == "org.jetbrains.dokka") {
- useModule("org.jetbrains.dokka:dokka-gradle-plugin:for-integration-tests-SNAPSHOT")
- }
- }
- }
- repositories {
- maven("https://dl.bintray.com/kotlin/kotlin-dev/")
- mavenLocal()
- mavenCentral()
- jcenter()
- gradlePluginPortal()
- }
-}
-
+apply(from = "../template.settings.gradle.kts")
rootProject.name = "it-basic"