diff --git a/CHANGELOG.md b/CHANGELOG.md index d96d3ef44..735c9e5fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added mising fields to field validation [#1422](https://github.com/ie3-institute/PowerSystemDataModel/issues/1422) - Fixed the issues with rtd for Cylindrical thermal storage [#1273](https://github.com/ie3-institute/PowerSystemDataModel/issues/1273) - Updated Controlling_em for all the loads in readthedocs[#1447](https://github.com/ie3-institute/PowerSystemDataModel/issues/1447) +- Included a doFirst clause into `checkJavaVersion.gradle` [#1462](https://github.com/ie3-institute/PowerSystemDataModel/issues/1462) ### Changed - Updated CI-Pipeline to run task `Deploy` and `Staging` only for `Main` [#1403](https://github.com/ie3-institute/PowerSystemDataModel/issues/1403) diff --git a/gradle/scripts/checkJavaVersion.gradle b/gradle/scripts/checkJavaVersion.gradle index eed016d08..50a76c84d 100644 --- a/gradle/scripts/checkJavaVersion.gradle +++ b/gradle/scripts/checkJavaVersion.gradle @@ -4,7 +4,7 @@ tasks.register("checkJavaVersion") { group = 'Verification' description = 'Enforces correct Java version' - doLast { + doFirst { def foundVersion = JavaVersion.current() if (foundVersion != javaVersion) throw new IllegalStateException("Wrong Java version: required is "