File tree Expand file tree Collapse file tree 3 files changed +7
-24
lines changed Expand file tree Collapse file tree 3 files changed +7
-24
lines changed Original file line number Diff line number Diff line change 36
36
java-version : 17
37
37
38
38
- name : Generate Dokka HTML docs
39
- run : ./gradlew :dokkaGenerate
39
+ run : ./gradlew :dokkaHtml
40
40
41
41
- name : Setup Pages
42
42
uses : actions/configure-pages@v5
Original file line number Diff line number Diff line change @@ -285,27 +285,11 @@ tasks {
285
285
286
286
// Docs
287
287
288
- tasks.register(" javadocJar" , Jar ::class ) {
289
- archiveClassifier.set(" javadoc" )
290
- }
291
-
292
- dependencies {
293
- dokka(project(" :" ))
294
- }
295
-
296
- dokka {
297
- moduleName.set(" kotlin-logging" )
298
- dokkaSourceSets {
299
- configureEach {
300
- sourceLink {
301
- localDirectory.set(project.projectDir.resolve(" src" ))
302
- remoteUrl.set(uri(" https://github.com/oshai/kotlin-logging/tree/master/src" ))
303
- remoteLineSuffix.set(" #L" )
304
- }
305
- }
306
- }
307
- dokkaPublications.html {
308
- outputDirectory.set(project.layout.buildDirectory.dir(" dokka" ))
288
+ tasks {
289
+ register<Jar >(" dokkaJar" ) {
290
+ from(dokkaHtml)
291
+ dependsOn(dokkaHtml)
292
+ archiveClassifier.set(" javadoc" )
309
293
}
310
294
}
311
295
@@ -373,7 +357,7 @@ publishing {
373
357
url.set(" https://github.com/oshai/kotlin-logging/tree/master" )
374
358
}
375
359
}
376
-
360
+ artifact(tasks[ " dokkaJar " ])
377
361
}
378
362
}
379
363
Original file line number Diff line number Diff line change @@ -4,4 +4,3 @@ org.gradle.jvmargs=-Xmx2048m
4
4
# see https://kotlinlang.org/docs/whatsnew18.html#sourcedirectories
5
5
kotlin.mpp.androidSourceSetLayoutVersion =2
6
6
kotlin.mpp.applyDefaultHierarchyTemplate =false
7
- org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
You can’t perform that action at this time.
0 commit comments