Skip to content

Commit

Permalink
rollback to jdk-11 compatibility
Browse files Browse the repository at this point in the history
closes #168

Signed-off-by: Niko Köbler <[email protected]>
  • Loading branch information
dasniko committed Jan 20, 2025
1 parent 4cd17e0 commit d5aa854
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Maven build
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<keycloak.version>999.0.0-SNAPSHOT</keycloak.version>
<logback.version>1.5.16</logback.version>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<quarkus.version>3.15.2</quarkus.version>
<quarkus.version>3.2.12.Final</quarkus.version>
<rest-assured.version>5.5.0</rest-assured.version>
<shrinkwrap.version>2.0.0-beta-2</shrinkwrap.version>
<shrinkwrap-resolver.version>3.3.3</shrinkwrap-resolver.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected void configure() {
withEnv("KC_BOOTSTRAP_ADMIN_PASSWORD", adminPassword);
}

withEnv("JAVA_OPTS_KC_HEAP", "-XX:InitialRAMPercentage=%d -XX:MaxRAMPercentage=%d".formatted(initialRamPercentage, maxRamPercentage));
withEnv("JAVA_OPTS_KC_HEAP", String.format("-XX:InitialRAMPercentage=%d -XX:MaxRAMPercentage=%d", initialRamPercentage, maxRamPercentage));

if (useTls && isNotBlank(tlsCertificateFilename)) {
String tlsCertFilePath = KEYCLOAK_CONF_DIR + "/tls.crt";
Expand Down Expand Up @@ -574,7 +574,7 @@ private InputStream loadResourceAsStream(String filename) {
}

public String getProtocol() {
return "http%s".formatted(useTls ? "s": "");
return String.format("http%s", useTls ? "s": "");
}

public String getAuthServerUrl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private void testDebugPortAvailable(final String debugHost, final int debugPort)
try {
debugSocket.connect(new InetSocketAddress(debugHost, debugPort));
} catch (IOException e) {
fail("Debug port %d cannot be reached.".formatted(debugPort));
fail(String.format("Debug port %d cannot be reached.", debugPort));
}
}
}
Expand Down

0 comments on commit d5aa854

Please sign in to comment.