Skip to content

Commit

Permalink
Perform Dokka 2 migration: https://kotl.in/dokka-gradle-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
no-preserve-root committed Jan 14, 2025
1 parent cc1c2b1 commit 5b51de1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ plugins {
kotlin("jvm")

id("org.jetbrains.dokka")
id("org.jetbrains.dokka-javadoc")
}

val libs = the<LibrariesForLibs>()
Expand All @@ -41,7 +42,7 @@ val kdocJar: TaskProvider<Jar> by
tasks.registering(Jar::class) {
group = DOCUMENTATION_GROUP
archiveClassifier = "kdoc"
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
from(tasks.dokkaGeneratePublicationHtml.flatMap { it.outputDirectory })
}

val kdoc: Configuration by
Expand All @@ -55,7 +56,7 @@ artifacts { add(kdoc.name, kdocJar) }
tasks.register("javadocJar", Jar::class) {
group = DOCUMENTATION_GROUP
archiveClassifier = "javadoc"
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
from(tasks.dokkaGeneratePublicationJavadoc.flatMap { it.outputDirectory })
}

java {
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx1G
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

0 comments on commit 5b51de1

Please sign in to comment.