Add OpenJDK 21 binding

Related: RHEL-13046
This commit is contained in:
Marián Konček 2024-01-22 15:05:14 +01:00
parent 38fad4074e
commit 28e4893b42
10 changed files with 51 additions and 1 deletions

View File

@ -8,6 +8,8 @@ rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk8.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk11.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk17.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk21.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk8.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk11.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk17.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk21.functional}

View File

@ -7,7 +7,7 @@
Name: maven
Epoch: 1
Version: 3.8.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Java project management and project comprehension tool
# maven itself is ASL 2.0
# bundled slf4j is MIT
@ -144,6 +144,18 @@ Conflicts: maven-jdk-binding
%description openjdk17
Configures Maven to run with OpenJDK 17.
%package openjdk21
Summary: OpenJDK 21 binding for Maven
RemovePathPostfixes: -openjdk21
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
Requires: maven = %{epoch}:%{version}-%{release}
Requires: java-21-openjdk-headless
Recommends: java-21-openjdk-devel
Conflicts: maven-jdk-binding
%description openjdk21
Configures Maven to run with OpenJDK 21.
%{?javadoc_package}
%prep
@ -253,6 +265,7 @@ install -d -m 755 %{buildroot}%{_javaconfdir}/
echo JAVA_HOME=%{_jvmlibdir}/java-1.8.0-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk8
echo JAVA_HOME=%{_jvmlibdir}/java-11-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk11
echo JAVA_HOME=%{_jvmlibdir}/java-17-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk17
echo JAVA_HOME=%{_jvmlibdir}/java-21-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk21
%post
@ -298,7 +311,14 @@ if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
%files openjdk17
%config %{_javaconfdir}/maven.conf-openjdk17
%files openjdk21
%config %{_javaconfdir}/maven.conf-openjdk21
%changelog
* Mon Jan 22 2024 Marián Konček <mkoncek@redhat.com> - 1:3.8.5-4
- Add OpenJDK 21 binding
- Related: RHEL-13046
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.8.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -5,6 +5,7 @@ prepare:
exclude:
- maven-openjdk8
- maven-openjdk17
- maven-openjdk21
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests

View File

@ -5,6 +5,7 @@ prepare:
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk21
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests

View File

@ -0,0 +1,13 @@
summary:
Run javapackages-specific tests - OpenJDK 21
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk17
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests
execute:
how: tmt

View File

@ -5,6 +5,7 @@ prepare:
exclude:
- maven-openjdk11
- maven-openjdk17
- maven-openjdk21
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests

View File

@ -4,5 +4,6 @@ prepare:
exclude:
- maven-openjdk8
- maven-openjdk17
- maven-openjdk21
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

View File

@ -4,5 +4,6 @@ prepare:
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk21
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

9
plans/smoke-jdk21.fmf Normal file
View File

@ -0,0 +1,9 @@
summary: Basic smoke test - OpenJDK 21
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk17
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

View File

@ -4,5 +4,6 @@ prepare:
exclude:
- maven-openjdk11
- maven-openjdk17
- maven-openjdk21
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar