Skip to content

Commit

Permalink
more dokka fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Aug 16, 2023
1 parent e65e65b commit c943a37
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask

plugins {
id("at.asitplus.gradle.vclib-conventions")
}

//access dokka plugin from conventions plugin's classpath in root project → no need to specify version
apply(plugin = "org.jetbrains.dokka")
tasks.getByName("dokkaHtmlMultiModule") {
(this as DokkaMultiModuleTask)
outputDirectory.set(File("$buildDir/dokka"))
includes.from("README.md")
}

task<Exec>("purge") {
dependsOn("clean")
workingDir = layout.projectDirectory.dir("vclib").asFile
Expand Down
17 changes: 17 additions & 0 deletions vclib-aries/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ repositories {

val javadocJar = setupDokka()

tasks.dokkaHtmlPartial{
dependsOn(":vclib:transformIosMainCInteropDependenciesMetadataForIde")
dependsOn(":vclib-openid:transformIosMainCInteropDependenciesMetadataForIde")
dokkaSourceSets {
configureEach {
sourceLink {
localDirectory.set(file("src/$name/kotlin"))
remoteUrl.set(
uri("https://github.com/a-sit-plus/kmm-vc-library/tree/main/${project.name}/src/$name/kotlin").toURL()
)
// Suffix which is used to append the line number to the URL. Use #L for GitHub
remoteLineSuffix.set("#L")
}
}
}
}

publishing {
publications {
withType<MavenPublication> {
Expand Down
17 changes: 17 additions & 0 deletions vclib-openid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,20 @@ signing {
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign(publishing.publications)
}

tasks.dokkaHtmlPartial{
dependsOn(":vclib-aries:transformIosMainCInteropDependenciesMetadataForIde")
dependsOn(":vclib:transformIosMainCInteropDependenciesMetadataForIde")
dokkaSourceSets {
configureEach {
sourceLink {
localDirectory.set(file("src/$name/kotlin"))
remoteUrl.set(
uri("https://github.com/a-sit-plus/kmm-vc-library/tree/main/${project.name}/src/$name/kotlin").toURL()
)
// Suffix which is used to append the line number to the URL. Use #L for GitHub
remoteLineSuffix.set("#L")
}
}
}
}
18 changes: 18 additions & 0 deletions vclib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,21 @@ signing {
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign(publishing.publications)
}


tasks.dokkaHtmlPartial {

dependsOn(":vclib:transformIosMainCInteropDependenciesMetadataForIde")
dokkaSourceSets {
configureEach {
sourceLink {
localDirectory.set(file("src/$name/kotlin"))
remoteUrl.set(
uri("https://github.com/a-sit-plus/kmm-vc-library/tree/main/${project.name}/src/$name/kotlin").toURL()
)
// Suffix which is used to append the line number to the URL. Use #L for GitHub
remoteLineSuffix.set("#L")
}
}
}
}

0 comments on commit c943a37

Please sign in to comment.