Skip to content

Commit a6bfaa9

Browse files
authored
Remove partial Semeru support (#731)
- It looks like the install is provided mainly via a straight package download from GitHub. In this case, this cookbook is not useful in supporting that install method Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent bfa53a8 commit a6bfaa9

File tree

7 files changed

+7
-110
lines changed

7 files changed

+7
-110
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
- temurin-11
3838
- temurin-17
3939
- temurin-21
40-
# - semeru-11
41-
# - semeru-17
4240
fail-fast: false
4341
steps:
4442
- name: Check out code

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This file is used to list changes made in each version of the Java cookbook.
44

55
## Unreleased
66

7+
- Remove Semeru support as there is no clean yum or apt repository for it
8+
79
## 13.2.0 - *2025-07-14*
810

911
- Add `repository_uri` property to `temurin_package_install` and `openjdk_pkg_install` resources to support installation from alternative/internal mirrors ([#728](https://github.com/sous-chefs/java/issues/728))

bin/check_java_versions.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
'17' => 'adoptium/temurin17-binaries',
1010
}.freeze
1111

12-
SEMERU_REPOS = {
13-
'11' => 'ibmruntimes/semeru11-binaries',
14-
'17' => 'ibmruntimes/semeru17-binaries',
15-
}.freeze
16-
1712
CORRETTO_REPOS = {
1813
'11' => 'corretto-11',
1914
'17' => 'corretto-17',

kitchen.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suites:
4747
inspec_tests: [test/integration/openjdk]
4848
inputs: { java_version: "17" }
4949

50-
# Temurin/Semeru
50+
# Temurin
5151
- name: temurin-8
5252
run_list:
5353
- recipe[test::temurin_pkg]
@@ -87,26 +87,6 @@ suites:
8787
- test/integration/temurin
8888
inputs: { java_version: "21" }
8989

90-
- name: semeru-11
91-
run_list:
92-
- recipe[test::openjdk]
93-
attributes:
94-
version: 11
95-
variant: semeru
96-
verifier:
97-
inspec_tests: [test/integration/openjdk]
98-
inputs: { java_version: "11" }
99-
100-
- name: semeru-17
101-
run_list:
102-
- recipe[test::openjdk]
103-
attributes:
104-
version: 17
105-
variant: semeru
106-
verifier:
107-
inspec_tests: [test/integration/openjdk]
108-
inputs: { java_version: "17" }
109-
11090
# Corretto
11191
- name: corretto-8
11292
run_list:

libraries/openjdk_helpers.rb

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,6 @@ def default_openjdk_url(version, variant = 'openjdk')
4646
Chef::Log.fatal('Version specified does not have a URL value set')
4747
raise 'Version supplied does not have a download URL set'
4848
end
49-
when 'semeru'
50-
case version
51-
when '11'
52-
'https://github.com/ibmruntimes/semeru11-binaries/releases/download/jdk-11.0.14.1%2B1_openj9-0.30.1/ibm-semeru-open-jdk_x64_linux_11.0.14.1_1_openj9-0.30.1.tar.gz'
53-
when '16'
54-
'https://github.com/ibmruntimes/semeru16-binaries/releases/download/jdk-16.0.2%2B7_openj9-0.27.1/ibm-semeru-open-jdk_ppc64le_linux_16.0.2_7_openj9-0.27.1.tar.gz'
55-
when '17'
56-
'https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.2%2B8_openj9-0.30.0/ibm-semeru-open-jdk_x64_linux_17.0.2_8_openj9-0.30.0.tar.gz'
57-
when '18'
58-
'https://github.com/AdoptOpenJDK/semeru18-binaries/releases/download/jdk-18.0.1%2B10_openj9-0.32.0/ibm-semeru-open-jdk_x64_linux_18.0.1_10_openj9-0.32.0.tar.gz'
59-
else
60-
Chef::Log.fatal('Version specified does not have a URL value set')
61-
raise 'Version supplied does not have a download URL set'
62-
end
6349
else
6450
case version
6551
when '9'
@@ -128,8 +114,8 @@ def default_openjdk_pkg_names(version)
128114
end
129115

130116
def default_openjdk_pkg_java_home(version)
131-
# For both standard OpenJDK and Temurin/Semeru variants, use the standard OpenJDK paths
132-
# Temurin and Semeru variants are installed using package managers with standard paths
117+
# For both standard OpenJDK and Temurin variants, use the standard OpenJDK paths
118+
# Temurin variant is installed using package managers with standard paths
133119

134120
# Map architecture to the correct suffix used in Java paths
135121
arch = case node['kernel']['machine']
@@ -143,7 +129,7 @@ def default_openjdk_pkg_java_home(version)
143129
node['kernel']['machine']
144130
end
145131

146-
# For Debian-based systems, Temurin and standard OpenJDK use the same path structure
132+
# For Debian-based systems, Temurin variant uses the same path structure
147133
# with architecture-specific suffixes
148134
value_for_platform_family(
149135
%w(rhel fedora) => version.to_i < 11 ? "/usr/lib/jvm/java-1.#{version}.0" : "/usr/lib/jvm/java-#{version}",

resources/partial/_openjdk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
property :variant, String,
2-
equal_to: %w(openjdk semeru temurin),
2+
equal_to: %w(openjdk temurin),
33
default: 'openjdk',
44
description: 'Install flavour'

spec/libraries/semeru_helpers_spec.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)