File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ plugins {
2
2
// Facilitates Java compilation
3
3
id ' java'
4
4
// For formatting source-code
5
- // NOTE: This is the maximum version that will work with JDK 8.
6
- id ' com.diffplug.spotless' version ' 6.12.0'
5
+ alias(libs. plugins. spotless)
7
6
}
8
7
9
8
// Tasks not related to build are split out into their own gradle scripts
@@ -21,7 +20,7 @@ dependencies {
21
20
// Ensure gradle is aware of the patched_client.jar dependency
22
21
implementation files(' patched_client.jar' )
23
22
// Used to find/populate scripts
24
- implementation group : ' org .reflections' , name : ' reflections ' , version : ' 0.10.2 '
23
+ implementation libs . reflections
25
24
}
26
25
27
26
tasks. named(' jar' ) {
Original file line number Diff line number Diff line change
1
+ [versions ]
2
+ spotless = ' 6.12.0' # maximum version that will work with JDK 8.
3
+ google-java-format = ' 1.7' # maximum version that will work with JDK 8.
4
+ reflections = ' 0.10.2'
5
+
6
+ [plugins ]
7
+ spotless = { id = ' com.diffplug.spotless' , version.ref = ' spotless' }
8
+ google-java-format = { id = ' com.google.googlejavaformat' , version.ref = ' google-java-format' }
9
+
10
+ [libraries ]
11
+ reflections = { module = ' org.reflections:reflections' , version.ref = ' reflections' }
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ spotless {
15
15
removeUnusedImports()
16
16
// Follow the Google Java formatting guide
17
17
// ref: https://google.github.io/styleguide/javaguide.html
18
- // NOTE: This is the maximum version that will work with JDK 8.
19
- googleJavaFormat(' 1.7' )
18
+ googleJavaFormat(" ${ libs.versions.google.java.format.get()} " )
20
19
// Fix formatting of type annotations
21
20
formatAnnotations()
22
21
}
You can’t perform that action at this time.
0 commit comments