Skip to content

Commit

Permalink
TOMEE-4318 | TOMEE-4317 - ActiveMQ 6 + Java 17 (#1120)
Browse files Browse the repository at this point in the history
* TOMEE-4317 - ActiveMQ 6.1.0
Drop related shades.

* Switch Java Level to 17

* Migrate V11 to V17 class constant in jwt tests

* Adds --add-opens for legacy code fragements with libraries not supporting J17+

* Bump maven-plugin-plugin version

* Add ScriptEngine implementation for js on Java 15+

* Add ScriptEngine implementation for js in tomee-embedded-maven-plugin as well

* Add ScriptEngine implementation for js on Java 15+

* Upgrade Mockito to make it work under J17+ env

* Exclude bean validaiton tck tests from "org.hibernate.beanvalidation.tck.tests.constraints.groups.groupconversion.*" as they seem to be broken in BVAL itself with Java 17

* Update GH actions to run with Java 17

* Fix review comments

---------

Co-authored-by: Markus Jung <jungm@apache.org>
  • Loading branch information
rzo1 and jungm committed Apr 16, 2024
1 parent efd0ad6 commit 8f7a7fd
Show file tree
Hide file tree
Showing 40 changed files with 307 additions and 683 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main-pull-request-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'

- name: Cache Maven packages
uses: actions/cache@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main-push-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'

- name: Cache Maven packages
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion arquillian/arquillian-openejb-embedded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<version>5.11.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down
8 changes: 4 additions & 4 deletions arquillian/arquillian-tomee-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@

<!-- ActiveMQ is optional in openejb-core -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>activemq-ra-shade</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-ra</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>activemq-broker-shade</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
Expand Down
1 change: 1 addition & 0 deletions assembly/openejb-standalone/src/main/resources/openejb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.net=ALL-UNNAMED"

export JDK_JAVA_OPTIONS

Expand Down
1 change: 1 addition & 0 deletions assembly/openejb-standalone/src/main/resources/openejb.bat
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.util=ALL-UNN
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED"
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.net=ALL-UNNAMED"

for %%a in (%OPENEJB_CORE_JAR%) do (
set OPENEJB_CORE_JAR="%%a"
Expand Down
98 changes: 38 additions & 60 deletions boms/tomee-plume/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.9.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.churchkey</groupId>
<artifactId>churchkey</artifactId>
Expand Down Expand Up @@ -486,9 +475,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
<groupId>net.shibboleth.utilities</groupId>
<artifactId>java-support</artifactId>
<version>8.4.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -497,9 +486,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<groupId>org.apache.activemq.protobuf</groupId>
<artifactId>activemq-protobuf</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -508,9 +497,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>net.shibboleth.utilities</groupId>
<artifactId>java-support</artifactId>
<version>8.4.0</version>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -519,9 +508,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq.protobuf</groupId>
<artifactId>activemq-protobuf</artifactId>
<version>1.1</version>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -531,8 +520,8 @@
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client-jakarta</artifactId>
<version>5.18.3</version>
<artifactId>activemq-jdbc-store</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -542,8 +531,30 @@
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-jdbc-store</artifactId>
<version>5.18.3</version>
<artifactId>activemq-kahadb-store</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-openwire-legacy</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-ra</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand Down Expand Up @@ -1300,39 +1311,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-broker-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-kahadb-store-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-ra-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>commons-dbcp2-shade</artifactId>
Expand Down
98 changes: 38 additions & 60 deletions boms/tomee-plus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.9.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.churchkey</groupId>
<artifactId>churchkey</artifactId>
Expand Down Expand Up @@ -486,9 +475,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
<groupId>net.shibboleth.utilities</groupId>
<artifactId>java-support</artifactId>
<version>8.4.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -497,9 +486,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<groupId>org.apache.activemq.protobuf</groupId>
<artifactId>activemq-protobuf</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -508,9 +497,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>net.shibboleth.utilities</groupId>
<artifactId>java-support</artifactId>
<version>8.4.0</version>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -519,9 +508,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq.protobuf</groupId>
<artifactId>activemq-protobuf</artifactId>
<version>1.1</version>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -531,8 +520,8 @@
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client-jakarta</artifactId>
<version>5.18.3</version>
<artifactId>activemq-jdbc-store</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand All @@ -542,8 +531,30 @@
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-jdbc-store</artifactId>
<version>5.18.3</version>
<artifactId>activemq-kahadb-store</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-openwire-legacy</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-ra</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
Expand Down Expand Up @@ -1322,39 +1333,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-broker-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-kahadb-store-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>activemq-ra-shade</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>commons-dbcp2-shade</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions container/openejb-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,13 @@

<!-- ActiveMQ -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>activemq-ra-shade</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-ra</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>activemq-broker-shade</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
Loading

0 comments on commit 8f7a7fd

Please sign in to comment.