aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/test/kotlin/org/jetbrains
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-09-27 07:05:36 +0200
committerGitHub <noreply@github.com>2022-09-27 07:05:36 +0200
commita7750c6447230abb409a05bf1686c78632696df4 (patch)
tree9fd7b54bd27d9590046596a2fe6b165e59444567 /runners/gradle-plugin/src/test/kotlin/org/jetbrains
parent86f9559ebd40a07e996df49464fc9101dd21d3bc (diff)
downloaddokka-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/org/jetbrains')
-rw-r--r--runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt6
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)