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 c943a37 commit 8ba1d21
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 52 deletions.
25 changes: 9 additions & 16 deletions vclib-aries/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,18 @@ repositories {
mavenCentral()
}

val javadocJar = setupDokka()
val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

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")
}
}
}
//workaround for borked implicit dependencies
tasks.filter { it.name.startsWith("dokkaHtml") }.forEach {
it.dependsOn(
":vclib:transformIosMainCInteropDependenciesMetadataForIde",
":vclib-openid:transformIosMainCInteropDependenciesMetadataForIde"
)
}



publishing {
publications {
withType<MavenPublication> {
Expand Down
27 changes: 10 additions & 17 deletions vclib-openid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ repositories {
mavenCentral()
}

val javadocJar = setupDokka()
val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

//workaround for borked implicit dependencies
tasks.filter { it.name.startsWith("dokkaHtml") }.forEach {
it.dependsOn(
":vclib-aries:transformIosMainCInteropDependenciesMetadataForIde",
":vclib:transformIosMainCInteropDependenciesMetadataForIde"
)
}


publishing {
publications {
Expand Down Expand Up @@ -101,19 +110,3 @@ signing {
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")
}
}
}
}
25 changes: 7 additions & 18 deletions vclib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ repositories {
}


val javadocJar = setupDokka()
val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

//workaround for borked implicit dependencies
tasks.filter { it.name.startsWith("dokkaHtml") }.forEach {
it.dependsOn(":vclib:transformIosMainCInteropDependenciesMetadataForIde")
}


publishing {
publications {
Expand Down Expand Up @@ -130,20 +136,3 @@ signing {
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 8ba1d21

Please sign in to comment.