Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- updated zero divison error issue in Qualityutil[#295](https://github.com/ie3-institute/PowerSystemUtils/issues/295)
- Included a doFirst clause into `checkJavaVersion.gradle` [#612](https://github.com/ie3-institute/PowerSystemUtils/issues/612)

## [3.1.0]

Expand Down
11 changes: 6 additions & 5 deletions gradle/scripts/checkJavaVersion.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
tasks.register("checkJavaVersion") {
group = 'Verification'
description = 'Enforces correct Java version'

def foundVersion = JavaVersion.current()
if (foundVersion != javaVersion)
throw new IllegalStateException("Wrong Java version: required is "
+ javaVersion + ", but found " + foundVersion)
doFirst {
def foundVersion = JavaVersion.current()
if (foundVersion != javaVersion)
throw new IllegalStateException("Wrong Java version: required is "
+ javaVersion + ", but found " + foundVersion)
}
}
compileJava.dependsOn(checkJavaVersion)