File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212### Fixed
1313- updated zero divison error issue in Qualityutil[ #295 ] ( https://github.com/ie3-institute/PowerSystemUtils/issues/295 )
14+ - Included a doFirst clause into ` checkJavaVersion.gradle ` [ #612 ] ( https://github.com/ie3-institute/PowerSystemUtils/issues/612 )
1415
1516## [ 3.1.0]
1617
Original file line number Diff line number Diff line change 33tasks. register(" checkJavaVersion" ) {
44 group = ' Verification'
55 description = ' Enforces correct Java version'
6-
7- def foundVersion = JavaVersion . current()
8- if (foundVersion != javaVersion)
9- throw new IllegalStateException (" Wrong Java version: required is "
10- + javaVersion + " , but found " + foundVersion)
6+ doFirst {
7+ def foundVersion = JavaVersion . current()
8+ if (foundVersion != javaVersion)
9+ throw new IllegalStateException (" Wrong Java version: required is "
10+ + javaVersion + " , but found " + foundVersion)
11+ }
1112}
1213compileJava. dependsOn(checkJavaVersion)
You can’t perform that action at this time.
0 commit comments