Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
java-version: 17

- name: Generate Dokka HTML docs
run: ./gradlew :dokkaHtml
run: ./gradlew :dokkaGenerate

- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
28 changes: 22 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,27 @@ tasks {

// Docs

tasks {
register<Jar>("dokkaJar") {
from(dokkaHtml)
dependsOn(dokkaHtml)
archiveClassifier.set("javadoc")
tasks.register("javadocJar", Jar::class) {
archiveClassifier.set("javadoc")
}

dependencies {
dokka(project(":"))
}

dokka {
moduleName.set("kotlin-logging")
dokkaSourceSets {
configureEach {
sourceLink {
localDirectory.set(project.projectDir.resolve("src"))
remoteUrl.set(uri("https://github.com/oshai/kotlin-logging/tree/master/src"))
remoteLineSuffix.set("#L")
}
}
}
dokkaPublications.html {
outputDirectory.set(project.layout.buildDirectory.dir("dokka"))
}
}

Expand Down Expand Up @@ -357,7 +373,7 @@ publishing {
url.set("https://github.com/oshai/kotlin-logging/tree/master")
}
}
artifact(tasks["dokkaJar"])

}
}

Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ org.gradle.jvmargs=-Xmx2048m
# see https://kotlinlang.org/docs/whatsnew18.html#sourcedirectories
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.applyDefaultHierarchyTemplate=false
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
Loading