Skip to content

Commit 3955f6c

Browse files
committed
build: use version catalog for dokka dependencies
1 parent 2fed247 commit 3955f6c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import org.semver.Version
77

88
buildscript {
99
dependencies {
10-
classpath("org.jetbrains.dokka:versioning-plugin:1.8.10")
11-
classpath("org.semver:api:0.9.33")
10+
classpath(libs.dokka.versioning)
11+
classpath(libs.semver)
1212
}
1313
}
1414

@@ -21,7 +21,7 @@ plugins {
2121
alias(libs.plugins.ktlint) apply false
2222
alias(libs.plugins.spotless) apply false
2323
alias(libs.plugins.tasktree)
24-
id("org.jetbrains.dokka") version "1.8.20"
24+
alias(libs.plugins.dokka)
2525
}
2626

2727
repositories {
@@ -46,7 +46,7 @@ fun computeVersion(): Any {
4646
}
4747

4848
dependencies {
49-
dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.8.10")
49+
dokkaPlugin(libs.dokka.versioning)
5050
}
5151

5252
subprojects {

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.4.0" }
1515
spotless = { id = "com.diffplug.spotless", version = "6.18.0" }
1616
tasktree = { id = "com.dorongold.task-tree", version = "2.1.1" }
1717
modelix-mps-buildtools = { id = "org.modelix.mps.build-tools", version = "1.1.0" }
18+
dokka = {id = "org.jetbrains.dokka", version = "1.8.20"}
1819

1920
[versions]
2021

@@ -83,3 +84,6 @@ junit = { group = "junit", name = "junit", version = "4.13.2" }
8384

8485
apache-cxf-sse = { group = "org.apache.cxf", name = "cxf-rt-rs-sse", version.ref = "apacheCxf" }
8586
apache-cxf-client = { group = "org.apache.cxf", name = "cxf-rt-rs-client", version.ref = "apacheCxf" }
87+
88+
semver = { group = "org.semver", name = "api", version = "0.9.33"}
89+
dokka-versioning = { group = "org.jetbrains.dokka", name = "versioning-plugin", version = "1.8.20"}

0 commit comments

Comments
 (0)