Skip to content

Commit 4629bd7

Browse files
committed
build(Gradle): Rename catalog entries that are actually plugins
Although listed under `libraries`, these are actually Maven coordinates for Gradle plugins, which is necessary in order to use them in precompiled plugin scripts. To make that more clear, append "Plugin" to their names. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent c9fdf41 commit 4629bd7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

buildSrc/build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ repositories {
3939
dependencies {
4040
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
4141

42-
implementation(libs.detekt)
43-
implementation(libs.dokkatoo)
44-
implementation(libs.graalVmNativeImage)
42+
implementation(libs.detektPlugin)
43+
implementation(libs.dokkatooPlugin)
44+
implementation(libs.graalVmNativeImagePlugin)
4545
implementation(libs.jgit)
46-
implementation(libs.kotlin)
46+
implementation(libs.kotlinPlugin)
4747
}
4848

4949
val javaVersion = JavaVersion.current()

gradle/libs.versions.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ clikt = { module = "com.github.ajalt.clikt:clikt", version.ref = "clikt" }
8080
commonsCompress = { module = "org.apache.commons:commons-compress", version.ref = "commonsCompress" }
8181
cvssCalculator = { module = "us.springett:cvss-calculator", version.ref = "cvssCalculator" }
8282
cyclonedx = { module = "org.cyclonedx:cyclonedx-core-java", version.ref = "cyclonedx" }
83-
detekt = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektPlugin" }
83+
detektPlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektPlugin" }
8484
detektApi = { module = "io.gitlab.arturbosch.detekt:detekt-api", version.ref = "detektPlugin" }
8585
detektTest = { module = "io.gitlab.arturbosch.detekt:detekt-test", version.ref = "detektPlugin" }
8686
diffUtils = { module = "io.github.java-diff-utils:java-diff-utils", version.ref = "diffUtils" }
8787
diskLruCache = { module = "com.jakewharton:disklrucache", version.ref = "diskLruCache" }
88-
dokkatoo = { module = "dev.adamko.dokkatoo:dokkatoo-plugin", version.ref = "dokkatooPlugin" }
88+
dokkatooPlugin = { module = "dev.adamko.dokkatoo:dokkatoo-plugin", version.ref = "dokkatooPlugin" }
8989
exposedCore = { module = "org.jetbrains.exposed:exposed-core", version.ref = "exposed" }
9090
exposedDao = { module = "org.jetbrains.exposed:exposed-dao", version.ref = "exposed" }
9191
exposedJavaTime = { module = "org.jetbrains.exposed:exposed-java-time", version.ref = "exposed" }
9292
exposedJdbc = { module = "org.jetbrains.exposed:exposed-jdbc", version.ref = "exposed" }
9393
exposedJson = { module = "org.jetbrains.exposed:exposed-json", version.ref = "exposed" }
9494
flexmark = { module = "com.vladsch.flexmark:flexmark", version.ref = "flexmark" }
9595
freemarker = { module = "org.freemarker:freemarker", version.ref = "freemarker" }
96-
graalVmNativeImage = { module = "org.graalvm.buildtools:native-gradle-plugin", version.ref = "graalVmNativeImagePlugin" }
96+
graalVmNativeImagePlugin = { module = "org.graalvm.buildtools:native-gradle-plugin", version.ref = "graalVmNativeImagePlugin" }
9797
graphQlKtorClient = { module = "com.expediagroup:graphql-kotlin-ktor-client", version.ref = "graphQlPlugin" }
9898
greenmail = { module = "com.icegreen:greenmail", version.ref = "greenmail" }
9999
hikari = { module = "com.zaxxer:HikariCP", version.ref = "hikari" }
@@ -121,7 +121,7 @@ kotestExtensionsJunitXml = { module = "io.kotest:kotest-extensions-junitxml", ve
121121
kotestFrameworkApi = { module = "io.kotest:kotest-framework-api", version.ref = "kotest" }
122122
kotestFrameworkEngine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
123123
kotestRunnerJunit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
124-
kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinPlugin" }
124+
kotlinPlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinPlugin" }
125125
kotlinxCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
126126
kotlinxHtml = { module = "org.jetbrains.kotlinx:kotlinx-html-jvm", version.ref = "kotlinxHtml" }
127127
kotlinxSerializationCore = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlinxSerialization" }

0 commit comments

Comments
 (0)