Skip to content

Commit

Permalink
Update Dokka to 1.9.0 (#118)
Browse files Browse the repository at this point in the history
* Update Dokka to 1.9.0

* Move Kotlin Analysis dependencies to new single dependency (analysis-kotlin-descriptors)
* Dependency updates:
  * Update Kotlin from 1.8.20 to 1.9.0
  * Update Dokka from 1.8.20 to 1.9.0
  * Update Kotlin Serialization from 1.5.1 to 1.6.0
  * Update internal Dokkatoo from 1.5.0 to 1.6.0

Resolves #117

* remove overridden Dokka version in `:docs`

* update example projects

* update integration test projects

---------

Co-authored-by: Adam <897017+aSemy@users.noreply.github.com>
  • Loading branch information
EdricChan03 and aSemy committed Sep 3, 2023
1 parent a4bb6c7 commit 6f89c1a
Show file tree
Hide file tree
Showing 38 changed files with 87 additions and 87 deletions.
6 changes: 3 additions & 3 deletions examples/custom-format-example/dokka/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration

plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20"
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
}

buildscript {
dependencies {
classpath("org.jetbrains.dokka:dokka-base:1.8.20")
classpath("org.jetbrains.dokka:dokka-base:1.9.0")
}
}

Expand Down
28 changes: 14 additions & 14 deletions examples/custom-format-example/dokka/logo-styles.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
* All Margins and sizes are custom for the ktor-logo.png file.
* You may need to modify it and find what works best for your case.
* You may need to override it and find what works best for your case.
*/
.library-name a {
position: relative;
margin-left: 55px;
:root {
--dokka-logo-image-url: url('../images/ktor-logo.png');
--dokka-logo-height: 125px;
--dokka-logo-width: 50px;
}

.library-name a::before {
content: '';
background-image: url('../images/ktor-logo.png');
background-repeat: no-repeat;
background-size: 125px 50px;
position: absolute;
width: 52px;
height: 50px;
top: -18px;
left: -62px;
/* link custom rules styles */
.library-name--link {
/* ... */
}

/* logo custom rules styles */
.library-name--link::before {
background-position: left;
width: 52px;
}
8 changes: 6 additions & 2 deletions examples/custom-format-example/dokkatoo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
plugins {
kotlin("jvm") version "1.8.22"
kotlin("jvm") version "1.9.0"
id("dev.adamko.dokkatoo") version "2.0.0-SNAPSHOT"
}

dokkatoo {
moduleName.set("customFormat-example")
pluginsConfiguration.html {
// Custom format adds a custom logo
// Dokka's stylesheets and assets with conflicting names will be overridden.
// In this particular case, logo-styles.css will be overridden
// and ktor-logo.png will be added as an additional image asset
customStyleSheets.from("logo-styles.css")
customAssets.from("ktor-logo.png")

// Text used in the footer
footerMessage.set("(c) Custom Format Dokka example")
}
}
28 changes: 14 additions & 14 deletions examples/custom-format-example/dokkatoo/logo-styles.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
* All Margins and sizes are custom for the ktor-logo.png file.
* You may need to modify it and find what works best for your case.
* You may need to override it and find what works best for your case.
*/
.library-name a {
position: relative;
margin-left: 55px;
:root {
--dokka-logo-image-url: url('../images/ktor-logo.png');
--dokka-logo-height: 125px;
--dokka-logo-width: 50px;
}

.library-name a::before {
content: '';
background-image: url('../images/ktor-logo.png');
background-repeat: no-repeat;
background-size: 125px 50px;
position: absolute;
width: 52px;
height: 50px;
top: -18px;
left: -62px;
/* link custom rules styles */
.library-name--link {
/* ... */
}

/* logo custom rules styles */
.library-name--link::before {
background-position: left;
width: 52px;
}
4 changes: 2 additions & 2 deletions examples/gradle-example/dokka/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL

plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20"
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion examples/gradle-example/dokkatoo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "1.8.22"
kotlin("jvm") version "1.9.0"
id("dev.adamko.dokkatoo") version "2.0.0-SNAPSHOT"
}

Expand Down
10 changes: 5 additions & 5 deletions examples/kotlin-as-java-example/dokka/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20"
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
}

repositories {
Expand All @@ -11,11 +11,11 @@ dependencies {
testImplementation(kotlin("test-junit"))

// Will apply the plugin to all Dokka tasks
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20")
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.0")

// Will apply the plugin only to the `:dokkaHtml` task
//dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20")
//dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.0")

// Will apply the plugin only to the `:dokkaGfm` task
//dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20")
//dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.0")
}
4 changes: 2 additions & 2 deletions examples/library-publishing-example/dokka/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20"
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
`java-library`
`maven-publish`
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion

plugins {
`kotlin-dsl`
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
implementation("dev.adamko.dokkatoo:dokkatoo-plugin:2.0.0-SNAPSHOT")
}
6 changes: 3 additions & 3 deletions examples/multiplatform-example/dokka/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.dokka.Platform

plugins {
kotlin("multiplatform") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20"
kotlin("multiplatform") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
}

repositories {
Expand All @@ -19,7 +19,7 @@ kotlin {
jvm() // Creates a JVM target with the default name "jvm"
linuxX64("linux")
macosX64("macos")
js(BOTH)
js()
sourceSets {
val commonMain by getting {
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ package org.kotlintestmpp

import kotlinx.cinterop.CPointed
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi

/**
* Low-level Linux function
*/
@OptIn(ExperimentalForeignApi::class)
fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) {
println(pointer.rawValue)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ package org.kotlintestmpp

import kotlinx.cinterop.CPointed
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi

/**
* Low-level Linux function
*/
@OptIn(ExperimentalForeignApi::class)
fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) {
println(pointer.rawValue)
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.dokka") version "1.8.20" apply false
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0" apply false
}

// The versioning plugin must be applied in all submodules
Expand All @@ -14,6 +14,6 @@ subprojects {
}
val dokkaPlugin by configurations
dependencies {
dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.8.20")
dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.9.0")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.jetbrains.dokka.versioning.VersioningConfiguration

buildscript {
dependencies {
classpath("org.jetbrains.dokka:versioning-plugin:1.8.20")
classpath("org.jetbrains.dokka:versioning-plugin:1.9.0")
}

repositories {
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[versions]

kotlin = "1.8.20" # should match Gradle's embedded Kotlin version https://docs.gradle.org/current/userguide/compatibility.html#kotlin
kotlin-dokka = "1.8.20"
kotlinx-serialization = "1.5.1"
kotlin = "1.9.0" # should match Gradle's embedded Kotlin version https://docs.gradle.org/current/userguide/compatibility.html#kotlin
kotlin-dokka = "1.9.0"
kotlinx-serialization = "1.6.0"

kotest = "5.6.2"

gradlePlugin-android = "8.0.2"
gradlePlugin-dokkatoo = "1.5.0"
gradlePlugin-dokkatoo = "1.6.0"
gradlePlugin-gradlePublishPlugin = "1.2.1"
gradlePlugin-bcvMu = "0.0.4"

Expand Down
4 changes: 0 additions & 4 deletions modules/docs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ dokkatoo {
"./images/logo-icon.svg",
)
}

versions {
jetbrainsDokka.set(libs.versions.kotlin.dokka)
}
}

tasks.dokkatooGeneratePublicationHtml {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.library") version "8.0.2"
kotlin("android") version "1.8.22"
kotlin("android") version "1.9.0"
id("dev.adamko.dokkatoo") version "2.0.0-SNAPSHOT"
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ plugins {

buildscript {
dependencies {
classpath("org.jetbrains.dokka:dokka-base:1.8.20")
classpath("org.jetbrains.dokka:dokka-base:1.9.0")
}
}

version = "1.8.20-SNAPSHOT"
version = "1.9.0-SNAPSHOT"

apply(from = "./template.root.gradle.kts")

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import dev.adamko.dokkatoo.dokka.parameters.VisibilityModifier
import dev.adamko.dokkatoo.dokka.plugins.DokkaHtmlPluginParameters

plugins {
kotlin("jvm") version "1.8.22"
kotlin("jvm") version "1.9.0"
id("dev.adamko.dokkatoo") version "2.0.0-SNAPSHOT"
}

version = "1.8.20-SNAPSHOT"
version = "1.9.0-SNAPSHOT"

dependencies {
testImplementation(kotlin("test-junit"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
react_version=18.2.0-pre.467
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
useModule("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
}

if (requested.id.id == "com.android.library") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dokka_it_kotlin_version=1.8.20
dokka_it_kotlin_version=1.9.0

Loading

0 comments on commit 6f89c1a

Please sign in to comment.