diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-19 09:34:40 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-20 16:36:30 +0200 |
commit | 872008d130c1b4f7e8721a0f177636ac9b157de6 (patch) | |
tree | 0d81a95cea36ec753c8a5c778f6460e597f55dea /runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka | |
parent | b9a1b3380a0bb8a64f3c7f257374cd4a6b2f3cfe (diff) | |
download | dokka-872008d130c1b4f7e8721a0f177636ac9b157de6.tar.gz dokka-872008d130c1b4f7e8721a0f177636ac9b157de6.tar.bz2 dokka-872008d130c1b4f7e8721a0f177636ac9b157de6.zip |
- Implement GradleDokkaSourceSetBuilder#isDocumented to enable/disable source sets
- Let KotlinSourceSetGist#isMain use provider API to be evaluated more lazily
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka')
2 files changed, 10 insertions, 10 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt index 13ba9622..49db0eb6 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt @@ -26,7 +26,7 @@ class ConfigureWithKotlinSourceSetGistTest { val gist = KotlinSourceSetGist( name = "customName", platform = KotlinPlatformType.common, - isMain = true, + isMain = project.provider { true }, classpath = project.files(f1Jar, f2Jar), sourceRoots = project.files(customSourceRoot), dependentSourceSetNames = project.provider { setOf("customRootSourceSet") } @@ -68,7 +68,7 @@ class ConfigureWithKotlinSourceSetGistTest { val gist = KotlinSourceSetGist( name = "customMain", platform = KotlinPlatformType.common, - isMain = true, + isMain = project.provider { true }, classpath = project.files(), sourceRoots = project.files(), dependentSourceSetNames = project.provider { emptySet() } diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt index 1996bb16..eff0726f 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt @@ -37,7 +37,7 @@ class KotlinSourceSetGistTest { ) assertTrue( - mainSourceSetGist.isMain, + mainSourceSetGist.isMain.getSafe(), "Expected main sources to be marked as 'isMain'" ) @@ -57,7 +57,7 @@ class KotlinSourceSetGistTest { val testSourceSetGist = project.gistOf(testSourceSet) assertFalse( - testSourceSetGist.isMain, + testSourceSetGist.isMain.getSafe(), "Expected test source set not being marked as 'isMain'" ) @@ -204,32 +204,32 @@ class KotlinSourceSetGistTest { ) assertTrue( - commonMainSourceSetGist.isMain, + commonMainSourceSetGist.isMain.getSafe(), "Expected commonMain to be marked with 'isMain'" ) assertTrue( - jvmMainSourceSetGist.isMain, + jvmMainSourceSetGist.isMain.getSafe(), "Expected jvmMain to be marked with 'isMain'" ) assertTrue( - macosMainSourceSetGist.isMain, + macosMainSourceSetGist.isMain.getSafe(), "Expected macosMain to be marked with 'isMain'" ) assertFalse( - project.gistOf(kotlin.sourceSets["commonTest"]).isMain, + project.gistOf(kotlin.sourceSets["commonTest"]).isMain.getSafe(), "Expected commonTest not being marked with 'isMain'" ) assertFalse( - project.gistOf(kotlin.sourceSets["jvmTest"]).isMain, + project.gistOf(kotlin.sourceSets["jvmTest"]).isMain.getSafe(), "Expected jvmTest not being marked with 'isMain'" ) assertFalse( - project.gistOf(kotlin.sourceSets["macosTest"]).isMain, + project.gistOf(kotlin.sourceSets["macosTest"]).isMain.getSafe(), "Expected macosTest not being marked with 'isMain'" ) |