-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Dokka version to 1.8.20 (#89)
* update Dokka version to 1.8.20, and update example & template projects * update KGP to 1.8.22 in Dokkatoo example&test projects * update 'DON'T COPY' instructions in example projects * implement Dokkatoo convention plugin in multiplatform-example * use JS IR in multiplatform-example * set JVM Toolchain of 8 in it-basic project * update test values and assertions for new Dokka/Dokkatoo/Kotlin versions * add doc to dokka-convention example
- Loading branch information
Showing
57 changed files
with
180 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
plugins { | ||
kotlin("jvm") version "1.8.10" | ||
id("org.jetbrains.dokka") version ("1.7.20") | ||
kotlin("jvm") version "1.8.20" | ||
id("org.jetbrains.dokka") version "1.8.20" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
testImplementation(kotlin("test-junit")) | ||
|
||
// Will apply the plugin to all Dokka tasks | ||
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.20") | ||
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20") | ||
|
||
// Will apply the plugin only to the `:dokkaHtml` task | ||
//dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.20") | ||
//dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20") | ||
|
||
// Will apply the plugin only to the `:dokkaGfm` task | ||
//dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.20") | ||
//dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
examples/multimodule-example/dokkatoo/buildSrc/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion | ||
|
||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22") | ||
implementation("dev.adamko.dokkatoo:dokkatoo-plugin:1.5.0-SNAPSHOT") | ||
} |
21 changes: 21 additions & 0 deletions
21
examples/multimodule-example/dokkatoo/buildSrc/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
rootProject.name = "buildSrc" | ||
|
||
pluginManagement { | ||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven(providers.gradleProperty("testMavenRepo")) | ||
} | ||
} | ||
|
||
@Suppress("UnstableApiUsage") | ||
dependencyResolutionManagement { | ||
|
||
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven(providers.gradleProperty("testMavenRepo")) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
examples/multimodule-example/dokkatoo/buildSrc/src/main/kotlin/dokka-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Common conventions for generating documentation with Dokkatoo. | ||
*/ | ||
|
||
plugins { | ||
id("dev.adamko.dokkatoo") | ||
} | ||
|
||
dokkatoo { | ||
dokkatooSourceSets.configureEach { | ||
sourceLink { | ||
// Read docs for more details: https://kotlinlang.org/docs/dokka-gradle.html#source-link-configuration | ||
remoteUrl("https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-multimodule-example") | ||
localDirectory.set(rootDir) | ||
} | ||
} | ||
} |
16 changes: 12 additions & 4 deletions
16
examples/multimodule-example/dokkatoo/parentProject/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
examples/multimodule-example/dokkatoo/parentProject/childProjectA/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("dev.adamko.dokkatoo") version "1.5.0-SNAPSHOT" | ||
`dokka-convention` | ||
} | ||
|
||
dokkatoo { | ||
dokkatooSourceSets.configureEach { | ||
includes.from("ModuleA.md") | ||
} | ||
modulePath.set("childProjectA") // match the original dokka default | ||
} | ||
|
||
//region DON'T COPY - this is only needed for internal Dokkatoo integration tests | ||
dokkatoo { | ||
modulePath.set("childProjectA") // match the original dokka default | ||
} | ||
tasks.withType<dev.adamko.dokkatoo.tasks.DokkatooGenerateTask>().configureEach { | ||
generator.dokkaSourceSets.configureEach { | ||
sourceSetScope.set(":parentProject:childProjectA:dokkaHtmlPartial") | ||
} | ||
} | ||
//endregion |
8 changes: 6 additions & 2 deletions
8
examples/multimodule-example/dokkatoo/parentProject/childProjectB/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("dev.adamko.dokkatoo") version "1.5.0-SNAPSHOT" | ||
`dokka-convention` | ||
} | ||
|
||
dokkatoo { | ||
dokkatooSourceSets.configureEach { | ||
includes.from("ModuleB.md") | ||
} | ||
modulePath.set("childProjectB") // match the original dokka default | ||
} | ||
|
||
//region DON'T COPY - this is only needed for internal Dokkatoo integration tests | ||
dokkatoo { | ||
modulePath.set("childProjectB") // match the original dokka default | ||
} | ||
tasks.withType<dev.adamko.dokkatoo.tasks.DokkatooGenerateTask>().configureEach { | ||
generator.dokkaSourceSets.configureEach { | ||
sourceSetScope.set(":parentProject:childProjectB:dokkaHtmlPartial") | ||
} | ||
} | ||
//endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.