File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
build-logic/src/main/kotlin Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
cache-read-only : true
21
21
- name : Prepare API documentation
22
- run : ./gradlew dokkaHtml
22
+ run : ./gradlew dokkaGenerate
23
23
- name : Build Site
24
24
run : |
25
25
# Don't cache it to track updates.
Original file line number Diff line number Diff line change 26
26
with :
27
27
cache-read-only : true
28
28
# This is required for action-linkspector to work with API links.
29
- - run : ./gradlew dokkaHtml
29
+ - run : ./gradlew dokkaGenerate
30
30
- name : Mkdocs build validation
31
31
run : |
32
32
# Don't cache it to track updates.
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ version = providers.gradleProperty("VERSION_NAME").get()
13
13
group = providers.gradleProperty(" GROUP" ).get()
14
14
description = providers.gradleProperty(" POM_DESCRIPTION" ).get()
15
15
16
+ dokka {
17
+ dokkaPublications.html {
18
+ outputDirectory = rootDir.resolve(" docs/api" )
19
+ }
20
+ }
21
+
16
22
java {
17
23
withSourcesJar()
18
24
withJavadocJar()
@@ -33,10 +39,6 @@ gradlePlugin {
33
39
}
34
40
}
35
41
36
- tasks.dokkaHtml {
37
- outputDirectory = rootDir.resolve(" docs/api" )
38
- }
39
-
40
42
tasks.publishPlugins {
41
43
doFirst {
42
44
if (version.toString().endsWith(" SNAPSHOT" )) {
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ tasks.clean {
181
181
delete + = listOf (
182
182
rootDirs.map { it.resolve(" .gradle" ) },
183
183
rootDirs.map { it.resolve(" .kotlin" ) },
184
- tasks.dokkaHtml .map { it.outputDirectory },
184
+ dokka.dokkaPublications.html .map { it.outputDirectory },
185
185
// Generated by MkDocs.
186
186
rootDir.resolve(" site" ),
187
187
)
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g
9
9
org.gradle.kotlin.dsl.allWarningsAsErrors =true
10
10
org.gradle.parallel =true
11
11
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
+
12
17
# ######### Properties for publishing to Maven Central ##########
13
18
14
19
GROUP =com.gradleup.shadow
You can’t perform that action at this time.
0 commit comments