Skip to content

Commit

Permalink
Fix Jakarta EE 10/Java SE 8 validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reza-rahman committed Jun 13, 2024
1 parent 3af1255 commit 89de8d7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ private validateInput(jakartaVersion, profile, javaVersion, runtime, docker, Fil
throw new RuntimeException("Failed, the Core Profile is only supported for Jakarta EE 10")
}

if ((javaVersion == '8') && (jakartaVersion == '10')) {
FileUtils.forceDelete(outputDirectory)
throw new RuntimeException("Failed, Jakarta EE 10 does not support Java SE 8")
}

if (runtime.equalsIgnoreCase("payara") && (jakartaVersion != '8') && (javaVersion == '8')) {
FileUtils.forceDelete(outputDirectory)
throw new RuntimeException("Failed, Payara 6 does not support Java SE 8")
Expand Down

0 comments on commit 89de8d7

Please sign in to comment.