aboutsummaryrefslogtreecommitdiff
path: root/plugins/versioning
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-03-17 15:27:03 +0100
committerGitHub <noreply@github.com>2023-03-17 15:27:03 +0100
commit8bb4f4a86b131e9740a8074cb5775930f8280019 (patch)
tree2fea9f93d621d1a2c72129358a45a565cca68e6c /plugins/versioning
parent2a3917b7eb70b39360893b61f5cd7f580c41cfda (diff)
downloaddokka-8bb4f4a86b131e9740a8074cb5775930f8280019.tar.gz
dokka-8bb4f4a86b131e9740a8074cb5775930f8280019.tar.bz2
dokka-8bb4f4a86b131e9740a8074cb5775930f8280019.zip
Introduce Gradle Version Catalog with type-safe project dependencies (#2884)
Diffstat (limited to 'plugins/versioning')
-rw-r--r--plugins/versioning/build.gradle.kts33
1 files changed, 14 insertions, 19 deletions
diff --git a/plugins/versioning/build.gradle.kts b/plugins/versioning/build.gradle.kts
index eafd094f..d2363429 100644
--- a/plugins/versioning/build.gradle.kts
+++ b/plugins/versioning/build.gradle.kts
@@ -10,31 +10,26 @@ registerDokkaArtifactPublication("versioning-plugin") {
}
dependencies {
- compileOnly(project(":core"))
- implementation(kotlin("stdlib-jdk8"))
- implementation(kotlin("stdlib"))
+ compileOnly(projects.core)
implementation(kotlin("reflect"))
- implementation(project(":plugins:base"))
- implementation(project(":plugins:templating"))
+ implementation(projects.plugins.base)
+ implementation(projects.plugins.templating)
+ implementation(projects.plugins.templating)
- val coroutines_version: String by project
- implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
- val jackson_version: String by project
- implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version")
- val jackson_databind_version: String by project
+ implementation(libs.kotlinx.coroutines.core)
+ implementation(libs.jackson.kotlin)
constraints {
- implementation("com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version") {
+ implementation(libs.jackson.databind) {
because("CVE-2022-42003")
}
}
- val kotlinx_html_version: String by project
- implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:$kotlinx_html_version")
+ implementation(libs.kotlinx.html)
- val jsoup_version: String by project
- implementation("org.jsoup:jsoup:$jsoup_version")
- implementation("org.apache.maven:maven-artifact:3.8.5")
+ implementation(libs.jsoup)
+ implementation(libs.apache.mavenArtifact)
- testImplementation(project(":test-utils"))
- testImplementation(project(":core:test-api"))
- testImplementation("org.junit.jupiter:junit-jupiter:5.6.0")
+ testImplementation(projects.testUtils)
+ testImplementation(projects.core.testApi)
+ testImplementation(platform(libs.junit.bom))
+ testImplementation(libs.junit.jupiter)
}