Skip to content

Commit

Permalink
Configure dokka properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Jul 18, 2024
1 parent 2e487ed commit 1482bd1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions unleashandroidsdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL

plugins {
`maven-publish`
signing
Expand Down Expand Up @@ -145,3 +148,16 @@ signing {
sign(publishing.publications)
}
}

tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets {
named("main") {
moduleName.set("Unleash Android SDK")
sourceLink {
localDirectory.set(file("unleashandroidsdk/src/main/java"))
remoteUrl.set(URL("https://github.com/Unleash/unleash-android/tree/${tagVersion ?: "main"}/unleashandroidsdk/src/main/java"))
remoteLineSuffix.set("#L")
}
}
}
}

0 comments on commit 1482bd1

Please sign in to comment.