Skip to content

Commit 3e15c83

Browse files
authored
chore(scripts): use java 22 for tooling (#4480)
1 parent 3e84b3e commit 3e15c83

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

config/.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.0.12
1+
22.0.2

generators/src/main/java/com/algolia/codegen/utils/Helpers.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ public static void generateServers(List<CodegenServer> servers, Map<String, Obje
142142
}
143143

144144
// This is used for hosts like `insights` that uses `.io`
145-
URL url = new URL(server.url);
146-
regionalHost = url.getHost();
145+
regionalHost = server.url.replace("http://", "").replace("https://", "");
147146
}
148147

149148
if (!hasRegionalHost) {

scripts/docker/Dockerfile.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | b
2828
ARG JAVA_VERSION
2929
RUN curl -s "https://get.sdkman.io" | bash
3030
RUN source "/root/.sdkman/bin/sdkman-init.sh" \
31-
&& sdk install java ${JAVA_VERSION}-tem \
31+
&& sdk install java ${JAVA_VERSION}-zulu \
3232
&& sdk install sbt
3333

3434
# Java formatter

0 commit comments

Comments
 (0)