aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-22 14:31:11 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-14 17:51:11 +0200
commitaa21ab173d60bb69e50e7fc321e8b94c2815b6e8 (patch)
tree049c293b502b32130f8ff8b0ab1a90620cea46c1 /integration-tests/gradle
parent9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9 (diff)
downloaddokka-aa21ab173d60bb69e50e7fc321e8b94c2815b6e8.tar.gz
dokka-aa21ab173d60bb69e50e7fc321e8b94c2815b6e8.tar.bz2
dokka-aa21ab173d60bb69e50e7fc321e8b94c2815b6e8.zip
Use Gradle's new Property/Provider APIs
Diffstat (limited to 'integration-tests/gradle')
-rw-r--r--integration-tests/gradle/projects/it-basic-groovy/build.gradle6
-rw-r--r--integration-tests/gradle/projects/it-basic/build.gradle.kts7
-rw-r--r--integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt17
3 files changed, 28 insertions, 2 deletions
diff --git a/integration-tests/gradle/projects/it-basic-groovy/build.gradle b/integration-tests/gradle/projects/it-basic-groovy/build.gradle
index fadf4287..5c6104d5 100644
--- a/integration-tests/gradle/projects/it-basic-groovy/build.gradle
+++ b/integration-tests/gradle/projects/it-basic-groovy/build.gradle
@@ -17,8 +17,10 @@ dokkaHtml {
customSourceSet {
sourceRoot(file("src/main/java"))
sourceRoot(file("src/main/kotlin"))
- displayName = "custom"
- reportUndocumented = true
+
+ // TODO NOW: Can we get rid of this .set here?
+ displayName.set("custom")
+ reportUndocumented.set(true)
}
}
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts
index 45454e29..1840ba94 100644
--- a/integration-tests/gradle/projects/it-basic/build.gradle.kts
+++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts
@@ -9,6 +9,7 @@ apply(from = "../template.root.gradle.kts")
dependencies {
implementation(kotlin("stdlib"))
+ testImplementation(kotlin("test-junit"))
}
tasks.withType<DokkaTask> {
@@ -21,5 +22,11 @@ tasks.withType<DokkaTask> {
suppress.set(true)
}
}
+
+ register("myTest") {
+ kotlinSourceSet(kotlin.sourceSets["test"])
+ }
}
}
+
+buildDir.resolve("")
diff --git a/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt b/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt
new file mode 100644
index 00000000..3584bdef
--- /dev/null
+++ b/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt
@@ -0,0 +1,17 @@
+package it.basic
+
+import kotlin.test.Test
+import kotlin.test.assertTrue
+
+annotation class OurAnnotation
+
+class TestClass {
+ /**
+ * Asserts something. [PublicClass]
+ */
+ @Test
+ @OurAnnotation
+ fun test() {
+ assertTrue(1 == 1)
+ }
+}