Skip to content

Commit

Permalink
Upgrade to Kotlin 1.8.20, introduce Dokka.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Aug 13, 2023
1 parent 69bb982 commit 1fe8718
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))

implementation(libs.detekt.plugin)
implementation(libs.dokka.plugin)
implementation(libs.maven.publish)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.configure
import org.jetbrains.dokka.gradle.DokkaPlugin

@Suppress("UnstableApiUsage")
class PublishingPlugin : Plugin<Project> {
Expand All @@ -19,6 +20,7 @@ class PublishingPlugin : Plugin<Project> {
target.version = version

target.plugins.apply(MavenPublishPlugin::class)
target.plugins.apply(DokkaPlugin::class)

target.extensions.configure<MavenPublishBaseExtension> {
coordinates(
Expand Down
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
val libs = libs
id("org.jetbrains.kotlin.jvm") version libs.versions.kotlin.get()
id("org.jetbrains.dokka") version libs.versions.dokka.get()
}
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
agp-latest = "8.0.1"
agp-tools = "30.4.2"
detekt = "1.22.0"
kotlin = "1.8.0"
dokka = "1.8.20"
kotlin = "1.8.20"
maven-publish = "0.23.2"

[plugins]
Expand All @@ -26,6 +27,7 @@ jimfs = { module = "com.google.jimfs:jimfs", version = "1.2" }
gson = { module = "com.google.code.gson:gson", version = "2.10.1" }
kotlinxml = { module = "org.redundent:kotlin-xml-builder", version = "1.8.0" }

dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
maven-publish = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "maven-publish" }

detekt-plugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" }
Expand Down

0 comments on commit 1fe8718

Please sign in to comment.