Skip to content

Commit 965efe6

Browse files
authored
1 parent 24da309 commit 965efe6

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
cache-read-only: true
2121
- name: Prepare API documentation
22-
run: ./gradlew dokkaHtml
22+
run: ./gradlew dokkaGenerate
2323
- name: Build Site
2424
run: |
2525
# Don't cache it to track updates.

.github/workflows/links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
cache-read-only: true
2828
# This is required for action-linkspector to work with API links.
29-
- run: ./gradlew dokkaHtml
29+
- run: ./gradlew dokkaGenerate
3030
- name: Mkdocs build validation
3131
run: |
3232
# Don't cache it to track updates.

build-logic/src/main/kotlin/shadow.convention.publish.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ version = providers.gradleProperty("VERSION_NAME").get()
1313
group = providers.gradleProperty("GROUP").get()
1414
description = providers.gradleProperty("POM_DESCRIPTION").get()
1515

16+
dokka {
17+
dokkaPublications.html {
18+
outputDirectory = rootDir.resolve("docs/api")
19+
}
20+
}
21+
1622
java {
1723
withSourcesJar()
1824
withJavadocJar()
@@ -33,10 +39,6 @@ gradlePlugin {
3339
}
3440
}
3541

36-
tasks.dokkaHtml {
37-
outputDirectory = rootDir.resolve("docs/api")
38-
}
39-
4042
tasks.publishPlugins {
4143
doFirst {
4244
if (version.toString().endsWith("SNAPSHOT")) {

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ tasks.clean {
181181
delete += listOf(
182182
rootDirs.map { it.resolve(".gradle") },
183183
rootDirs.map { it.resolve(".kotlin") },
184-
tasks.dokkaHtml.map { it.outputDirectory },
184+
dokka.dokkaPublications.html.map { it.outputDirectory },
185185
// Generated by MkDocs.
186186
rootDir.resolve("site"),
187187
)

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g
99
org.gradle.kotlin.dsl.allWarningsAsErrors=true
1010
org.gradle.parallel=true
1111

12+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
13+
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
14+
org.jetbrains.dokka.experimental.tryK2=true
15+
org.jetbrains.dokka.experimental.tryK2.nowarn=true
16+
1217
########## Properties for publishing to Maven Central ##########
1318

1419
GROUP=com.gradleup.shadow

0 commit comments

Comments
 (0)