Skip to content

Commit d88d7ff

Browse files
committed
Support sharing the dependency catalog with buildSrc
1 parent 5d6d0df commit d88d7ff

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

buildSrc/settings.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
rootProject.name = 'common-conventions'
2+
3+
dependencyResolutionManagement {
4+
versionCatalogs {
5+
libs {
6+
from(files("../gradle/libs.versions.toml"))
7+
}
8+
}
9+
}

buildSrc/src/main/groovy/com.craftsmanshipinsoftware.common-conventions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ testing {
2323

2424
pmd {
2525
consoleOutput = true
26-
toolVersion = "7.6.0"
26+
toolVersion = libs.versions.pmd.get()
2727
ruleSets = ["category/java/errorprone.xml",
2828
"category/java/bestpractices.xml",
2929
"category/java/performance.xml"]

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
assertj-core = "3.26.3"
44
junit-jupiter = "5.11.0"
55
javafxplugin = "0.1.0"
6+
pmd = "7.6.0"
67

78
[libraries]
89
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj-core" }

0 commit comments

Comments
 (0)