File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,14 @@ repositories {
4242
4343apply from : " gradle/dependencies.gradle"
4444
45- if (JavaVersion . current() == JavaVersion . VERSION_21 ) {
45+ def currentJavaVersion = JavaVersion . current()
46+ if (! currentJavaVersion. isCompatibleWith(JavaVersion . VERSION_21 )) {
47+ throw new GradleException (
48+ " NullAway only builds on JDK 21 or higher now. Detected ${ System.getProperty('java.version')} . Please upgrade to JDK 21 or later."
49+ )
50+ }
51+
52+ if (currentJavaVersion == JavaVersion . VERSION_21 ) {
4653 def runtimeVersion = Runtime . version()
4754 if (runtimeVersion. feature() == 21 && runtimeVersion. update() < 8 ) {
4855 throw new GradleException (
@@ -129,7 +136,7 @@ spotless {
129136 groovyGradle {
130137 target ' **/*.gradle'
131138 greclipse()
132- indentWithSpaces (4 )
139+ leadingTabsToSpaces (4 )
133140 trimTrailingWhitespace()
134141 endWithNewline()
135142 }
You can’t perform that action at this time.
0 commit comments