File tree 2 files changed +1
-27
lines changed
2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 1
1
2
- import java.util.regex.Matcher
3
- import java.util.regex.Pattern
4
-
5
-
6
- def thisVm () {
7
- String jre = System . getProperty(" java.version" )
8
- if (jre. startsWith(" 1.8" )) {
9
- return 8
10
- } else {
11
- Matcher matcher = Pattern . compile(" (\\ d+)" ). matcher(jre)
12
- if (! matcher. find()) {
13
- throw new IllegalArgumentException (" Expected " + jre + " to start with an integer" )
14
- }
15
- int version = Integer . parseInt(matcher. group(1 ))
16
- if (version <= 8 ) {
17
- throw new IllegalArgumentException (" Expected " + jre + " to start with an integer greater than 8" )
18
- }
19
- return version
20
- }
21
- }
22
-
23
- if (thisVm() >= 15 ) {
24
- // freshmark doesn't run on JRE 15+
25
- return
26
- }
27
-
28
2
apply plugin : ' com.diffplug.spotless'
29
3
30
4
import com.diffplug.gradle.spotless.FreshMarkExtension
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pluginManagement {
6
6
}
7
7
8
8
plugins {
9
- id ' com.diffplug.spotless' version ' 6.14.0 ' apply false
9
+ id ' com.diffplug.spotless' version ' 6.14.1 ' apply false
10
10
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
11
11
id ' com.gradle.plugin-publish' version ' 1.1.0' apply false
12
12
// https://github.com/gradle-nexus/publish-plugin/releases
You can’t perform that action at this time.
0 commit comments