Skip to content

Commit 134e2ff

Browse files
committed
Use Version Catalogs to dynamically choose Spotless plugin version
1 parent 812cc93 commit 134e2ff

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java'
33
id 'com.google.protobuf' version '0.8.13'
44
id 'com.github.jlouns.cpe' version '0.5.0'
5-
id 'com.diffplug.spotless' version '6.13.0'
5+
alias(libs.plugins.spotless)
66
}
77

88
project.ext.set('grpcVersion', '1.53.0')

settings.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
rootProject.name = 'vscode-gradle'
2+
3+
dependencyResolutionManagement {
4+
versionCatalogs {
5+
libs {
6+
plugin('spotless', 'com.diffplug.spotless').version(JavaVersion.current().isJava8() ? '6.13.0' : '6.22.0')
7+
}
8+
}
9+
}
10+
211
include('gradle-server')
312
include('extension')
413
include('npm-package')

0 commit comments

Comments
 (0)