diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-09-27 07:05:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 07:05:36 +0200 |
commit | a7750c6447230abb409a05bf1686c78632696df4 (patch) | |
tree | 9fd7b54bd27d9590046596a2fe6b165e59444567 /runners/gradle-plugin/src/test/kotlin | |
parent | 86f9559ebd40a07e996df49464fc9101dd21d3bc (diff) | |
download | dokka-a7750c6447230abb409a05bf1686c78632696df4.tar.gz dokka-a7750c6447230abb409a05bf1686c78632696df4.tar.bz2 dokka-a7750c6447230abb409a05bf1686c78632696df4.zip |
Update Kotlin to 1.7.20-RC (#2682)
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt index 770d1af3..9babeefd 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt @@ -113,7 +113,7 @@ class GradleDokkaSourceSetBuilderTest { sourceSet.dependsOn(sourceSet.DokkaSourceSetID("s3")) sourceSet.dependsOn(GradleDokkaSourceSetBuilder("s4", project)) sourceSet.dependsOn(GradleDokkaSourceSetBuilder("s5", project).build()) - sourceSet.dependsOn(DefaultKotlinSourceSet(project, "s6")) + sourceSet.dependsOn(createDefaultKotlinSourceSet("s6")) sourceSet.dependsOn(DefaultAndroidSourceSet("s7", project, false)) assertEquals( @@ -123,6 +123,10 @@ class GradleDokkaSourceSetBuilderTest { ) } + private fun createDefaultKotlinSourceSet(displayName: String): DefaultKotlinSourceSet { + return project.objects.newInstance(DefaultKotlinSourceSet::class.java, project, displayName) + } + @Test fun samples() { val sourceSet = GradleDokkaSourceSetBuilder("", project) |