Skip to content

Commit

Permalink
build: Upgraded to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Jan 16, 2025
1 parent dbf6c50 commit cf63657
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 47 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bootPluginVersion = 3.4.1
dependencyPluginVersion = 1.1.6
gitPluginVersion = 3.0.0
jacocoPluginVersion = 0.8.12
jdksPluginVersion = 1.14.0
jdksPluginVersion = 1.15.0
kordampBuildVersion = 3.4.0
kordampPluginVersion = 0.54.0

Expand Down
44 changes: 22 additions & 22 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
environment:
properties:
jdkPathPrefix: 'plugins/riot/build/jdks'
jdkFilePrefix: 'zulu17.52.17-ca-jdk17.0.12'
jdkFilePrefix: 'zulu21.38.21-ca-jdk21.0.5'

project:
name: riot
Expand All @@ -27,11 +27,12 @@ project:
- url: https://raw.githubusercontent.com/redis/riot/main/src/media/icon_256x256.png
width: 256
height: 256
java:
groupId: com.redis
version: '21'
multiProject: true
mainClass: com.redis.riot.Riot
languages:
java:
groupId: com.redis
version: 21
multiProject: true
mainClass: com.redis.riot.Riot
tags: ['riot', 'redis', 'input', 'output', 'tool', 'data', 'import', 'export']

platform:
Expand All @@ -49,10 +50,9 @@ release:
preset: conventional-commits
contributors:
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'
enabled: false
contentTemplate: 'src/jreleaser/changelog.tpl'
extraProperties:
categorizeScopes: 'true'
categorizeScopes: true
labelers:
- label: 'i18n'
title: 'regex:^(?:i18n(?:\(.*\))?!?):\s.*'
Expand Down Expand Up @@ -121,7 +121,7 @@ assemble:
riot-standalone:
active: ALWAYS
java:
version: '21'
version: 21
imageName: '{{distributionName}}-{{projectEffectiveVersion}}'
executable: riot
fileSets:
Expand All @@ -143,21 +143,21 @@ assemble:
- 'jdk.security.auth'
- 'jdk.security.jgss'
targetJdks:
- path: '{{jdkPathPrefix}}/zulu17Osx/{{jdkFilePrefix}}-macosx_x64/zulu-17.jdk/Contents/Home'
- path: '{{jdkPathPrefix}}/zulu21Osx/{{jdkFilePrefix}}-macosx_x64/zulu-21.jdk/Contents/Home'
platform: 'osx-x86_64'
- path: '{{jdkPathPrefix}}/zulu17OsxArm/{{jdkFilePrefix}}-macosx_aarch64/zulu-17.jdk/Contents/Home'
- path: '{{jdkPathPrefix}}/zulu21OsxArm/{{jdkFilePrefix}}-macosx_aarch64/zulu-21.jdk/Contents/Home'
platform: 'osx-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17Linux/{{jdkFilePrefix}}-linux_x64'
- path: '{{jdkPathPrefix}}/zulu21Linux/{{jdkFilePrefix}}-linux_x64'
platform: 'linux-x86_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxArm/{{jdkFilePrefix}}-linux_aarch64'
- path: '{{jdkPathPrefix}}/zulu21LinuxArm/{{jdkFilePrefix}}-linux_aarch64'
platform: 'linux-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxMusl/{{jdkFilePrefix}}-linux_musl_x64'
- path: '{{jdkPathPrefix}}/zulu21LinuxMusl/{{jdkFilePrefix}}-linux_musl_x64'
platform: 'linux_musl-x86_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxMuslArm/{{jdkFilePrefix}}-linux_musl_aarch64'
- path: '{{jdkPathPrefix}}/zulu21LinuxMuslArm/{{jdkFilePrefix}}-linux_musl_aarch64'
platform: 'linux_musl-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17Windows/{{jdkFilePrefix}}-win_x64'
- path: '{{jdkPathPrefix}}/zulu21Windows/{{jdkFilePrefix}}-win_x64'
platform: 'windows-x86_64'
- path: '{{jdkPathPrefix}}/zulu17WindowsArm/{{jdkFilePrefix}}-win_aarch64'
- path: '{{jdkPathPrefix}}/zulu21WindowsArm/{{jdkFilePrefix}}-win_aarch64'
platform: 'windows-aarch_64'
mainJar:
path: 'plugins/riot/build/libs/riot-{{projectVersion}}.jar'
Expand Down Expand Up @@ -196,11 +196,11 @@ distributions:
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
extraProperties:
skipSpec: 'true'
skipSpec: true
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.tar
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.tar'
extraProperties:
skipFlatpak: 'true'
skipFlatpak: true

riot-standalone:
brew:
Expand All @@ -216,6 +216,6 @@ files:
artifacts:
- path: VERSION
extraProperties:
skipChecksum: 'true'
skipSigning: 'true'
skipSbom: 'true'
skipChecksum: true
skipSigning: true
skipSbom: true
68 changes: 44 additions & 24 deletions plugins/riot/riot.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,45 +75,65 @@ distributions {
}

jdks {
zulu17Linux {
zulu21Linux {
platform = 'linux-x86_64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-linux_x64.zip'
checksum = '0c197e99ecf2a282cb695947761ab2eee2b1293c8a101a5ca86366fedfc1730d'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-linux_x64.tar.gz'
checksum = '5320a33714f58c0104191d244759daa6a6d46819d447347ba9003132e5489d92'
}
zulu17LinuxArm {
zulu21LinuxArm {
platform = 'linux-aarch64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-linux_aarch64.tar.gz'
checksum = 'b88cf60f95a3ab24b2e65a1bbaf5a9de41531ac04a857cd3e7a420086c97c126'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-linux_aarch64.tar.gz'
checksum = '8bd387315620bb66a84945a51bcebb9016354b557c747e94d4837e68ea4077ec'
}
zulu17LinuxMusl {
zulu21LinuxMusl {
platform = 'linux_musl-x86_64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-linux_musl_x64.tar.gz'
checksum = '1bb9bedde3095d88fd216b9be112b59a8400f0e4d991243ce70be3b0518bcc7a'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-linux_musl_x64.tar.gz'
checksum = '8d383d47238b44361761edc9e169a215560009b15a0f8f56090583fc4b4709b6'
}
zulu17LinuxMuslArm {
zulu21LinuxMuslArm {
platform = 'linux_musl-aarch64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-linux_musl_aarch64.tar.gz'
checksum = '43efd90828038f6dcd941240d7e16719ef091146d137721e66ceefdb6c70ad66'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-linux_musl_aarch64.tar.gz'
checksum = 'b4725425f48138c59e1ee53b59aa5217c5e4571b63d6a801af6809f1e74e95b9'
}
zulu17Windows {
zulu21Windows {
platform = 'windows-x86_64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-win_x64.zip'
checksum = 'c0d9b0e02a92e4d919e0998970186983c745bdf2b0fe0b35b7d913acec9e502d'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-win_x64.zip'
checksum = '8dea44fd3a6f7ad0f42f38abc1371075710b58bed9bd8f093c2ef2d450dd2672'
}
zulu17WindowsArm {
zulu21WindowsArm {
platform = 'windows-aarch64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-win_aarch64.zip'
checksum = '907512ede5182993b3353608a89d4b0a78bf99fe60df7a76e1ad559c93c622b1'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-win_aarch64.zip'
checksum = 'f5ad7f539f74d12b6248c0fd9f4b416455dcf6803900b28e8d19054f3dcc6e98'
}
zulu17Osx {
zulu21Osx {
platform = 'osx-x86_64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-macosx_x64.zip'
checksum = 'f85ad0adc818d9071028c0c2bfa6c288894512d86764169f5f208027589a8665'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-macosx_x64.zip'
checksum = 'a77a9c67d8f9a2341674bcea7056d9d70f69ff0850dd3874303641cc9cec2dfc'
}
zulu17OsxArm {
zulu21OsxArm {
platform = 'osx-aarch64'
url = 'https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-macosx_aarch64.zip'
checksum = '863cb9e0d1ff696a9a2354d2b208a70d8a854df52460d6eb88279368e1cc36f9'
url = 'https://cdn.azul.com/zulu/bin/zulu21.38.21-ca-jdk21.0.5-macosx_aarch64.zip'
checksum = 'd5c289ce2c8c67f414ede3b170dea72ca9a1322520498325a51d83bbaa94d1f0'
}
graal23Osx {
platform = 'osx-x86_64'
url = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_macos-x64_bin.tar.gz'
checksum = 'd8206c29232a68908bbce146012925c52f060722fe2fc2dbb41fe17bd906b210'
}
graal23OsxArm {
platform = 'osx-aarch64'
url = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_macos-aarch64_bin.tar.gz'
checksum = 'd142ecf3d36775e457cdfe67e31982821dfe2d75ade28083990be19ee955f48f'
}
graal23Linux {
platform = 'linux-x86_64'
url = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_linux-x64_bin.tar.gz'
checksum = 'e26a0a74064b1689c056b5f24d7cc3b271f57f576be063b139d27aafa1322951'
}
graal23Windows {
platform = 'windows-x86_64'
url = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_windows-x64_bin.zip'
checksum = 'be5fe8f734476469f364329d9126c365a35d245755f3fc17a583e3a0f3688d38'
}
}

Expand Down

0 comments on commit cf63657

Please sign in to comment.