diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-08-14 17:03:26 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | 544713f4c33a0f81e05a50ec916caab851b1961d (patch) | |
tree | ef128e4ac6bdccf4b6ffc3276cfc368f3e2f5a1d /runners/gradle-plugin/src/main | |
parent | 3f8c99cf04893da8fc3c353cba0133dc54e5febe (diff) | |
download | dokka-544713f4c33a0f81e05a50ec916caab851b1961d.tar.gz dokka-544713f4c33a0f81e05a50ec916caab851b1961d.tar.bz2 dokka-544713f4c33a0f81e05a50ec916caab851b1961d.zip |
Extract `kotlinSourceSet()` from `GradleDokkaSourceSetBuilder`
Diffstat (limited to 'runners/gradle-plugin/src/main')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt index 881f9cf8..0246970a 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt @@ -145,10 +145,6 @@ open class GradleDokkaSourceSetBuilder constructor( dependentSourceSets.add(sourceSetID) } - fun kotlinSourceSet(kotlinSourceSet: KotlinSourceSet) { - configureWithKotlinSourceSet(kotlinSourceSet) - } - fun sourceRoot(file: File) { sourceRoots.from(file) } @@ -216,3 +212,7 @@ fun GradleDokkaSourceSetBuilder.dependsOn(sourceSet: KotlinSourceSet) { fun GradleDokkaSourceSetBuilder.dependsOn(sourceSet: AndroidSourceSet) { dependsOn(DokkaSourceSetID(sourceSet.name)) } + +fun GradleDokkaSourceSetBuilder.kotlinSourceSet(kotlinSourceSet: KotlinSourceSet) { + configureWithKotlinSourceSet(kotlinSourceSet) +} |