Skip to content

Commit

Permalink
Avoiding ZipException via config
Browse files Browse the repository at this point in the history
  • Loading branch information
luiseufrasio committed Feb 26, 2024
1 parent a2fab22 commit c2fbd23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ public void testRuntime(String supportedServer, String artifactId, SpecSelection
// Workaround https://github.com/OpenLiberty/ci.gradle/issues/841 by using a single-thread for Liberty + Gradle
int threadPoolSize = (supportedServer.equalsIgnoreCase("LIBERTY") && buildTool.equals(BuildTool.GRADLE)) ? 1 : 2;

// Workaround for Payara_Micro to avoid: java.util.zip.ZipException: Invalid CEN header
if (supportedServer.equalsIgnoreCase("PAYARA_MICRO")) {
System.setProperty("jdk.util.zip.disableZip64ExtraFieldValidation", "true");
}

try {
// Cleanup
cleanWorkspace(artifactId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public enum SupportedServer {
, MicroProfileVersion.MP32, MicroProfileVersion.MP33, MicroProfileVersion.MP40,
MicroProfileVersion.MP50)
, "%s-microbundle.jar" //jarFileName
, "--port 8180" //jarParameters
, "-Djdk.util.zip.disableZip64ExtraFieldValidation=true --port 8180" //jarParameters
, "8080" //portServiceA
, "8180" //portServiceB // This need to match with port value from defineJarParameters()
, "https://www.payara.fish/enterprise/enterprise-vs-community/payara-micro/"
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/files/gradle/payara-micro/build.gradle.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ plugins {
id "fish.payara.micro-gradle-plugin" version "1.0.4"
}

test {
systemProperty 'jdk.util.zip.disableZip64ExtraFieldValidation', 'true'
}

group = '[# th:text="${maven_groupid}"/]'
version = '1.0-SNAPSHOT'

Expand Down

0 comments on commit c2fbd23

Please sign in to comment.