Skip to content

Commit 1525cee

Browse files
authored
Merge pull request #316 from entando/ESB-808
ESB-808 jump to java 17 - jakartaEE10
2 parents ebdc895 + 833645a commit 1525cee

File tree

790 files changed

+10734
-4101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

790 files changed

+10734
-4101
lines changed

.github/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ mvn -B clean
55
(mvn org.codehaus.mojo:license-maven-plugin:2.5.0:aggregate-download-licenses &> ./license-maven-plugin.log) &
66
BKMVNPID="$!"
77

8+
# Check if parent has PR version and purge if needed
9+
PARENT_VERSION=$(mvn help:evaluate -Dexpression=project.parent.version -q -DforceStdout)
10+
if [[ "$PARENT_VERSION" == *"-PR"* ]]; then
11+
echo "~> Parent PR version detected ($PARENT_VERSION), purging parent dependency cache"
12+
mvn dependency:purge-local-repository \
13+
-DmanualInclude=org.entando:entando-maven-root \
14+
-DreResolve=false \
15+
-DactTransitively=false
16+
fi
17+
818
mvn versions:set -DnewVersion="$ARTIFACT_VERSION"
919

1020
mvn -B package;

.github/test-and-scan.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ else
2222
SONAR_ORG=""
2323
fi
2424

25+
# Check if parent has PR version and purge if needed
26+
PARENT_VERSION=$(mvn help:evaluate -Dexpression=project.parent.version -q -DforceStdout)
27+
if [[ "$PARENT_VERSION" == *"-PR"* ]]; then
28+
echo "~> Parent PR version detected ($PARENT_VERSION), purging parent dependency cache"
29+
mvn dependency:purge-local-repository \
30+
-DmanualInclude=org.entando:entando-maven-root \
31+
-DreResolve=false \
32+
-DactTransitively=false
33+
fi
34+
2535
# ~ version set
2636
mvn versions:set -DnewVersion="$ARTIFACT_VERSION"
2737

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
GH_PR_TITLE: ${{ github.event.pull_request.title }}
77
GH_PR_NUMBER: ${{ github.event.pull_request.number }}
88
GH_PR_RUN_NUMBER: ${{ github.run_number }}
9-
IMAGES_TO_BUILD: "Dockerfile.eap:entando-de-app-eap,Dockerfile.wildfly:entando-de-app-wildfly,Dockerfile.tomcat:entando-de-app-tomcat"
9+
IMAGES_TO_BUILD: "Dockerfile.tomcat:entando-de-app-tomcat"
1010
ENTANDO_CRANE_VERSION: ${{ vars.ENTANDO_CRANE_VERSION || 'v0.10.0' }}
1111
GITHUB_REF: ${{ github.ref }}
1212

@@ -29,10 +29,10 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131

32-
- name: Set up JDK 11
32+
- name: Set up JDK 17
3333
uses: actions/setup-java@v4
3434
with:
35-
java-version: '11'
35+
java-version: '17'
3636
distribution: 'temurin'
3737
cache: maven
3838

@@ -85,10 +85,10 @@ jobs:
8585
steps:
8686
- uses: actions/checkout@v4
8787

88-
- name: Set up JDK 11
88+
- name: Set up JDK 17
8989
uses: actions/setup-java@v4
9090
with:
91-
java-version: '11'
91+
java-version: '17'
9292
distribution: 'temurin'
9393
cache: maven
9494

Dockerfile.eap

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

Dockerfile.tomcat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
FROM registry.hub.docker.com/entando/entando-tomcat-base:v7.3.0-ENG-5554-PR-31-KB-release-2F-7.3.0
1+
FROM registry.hub.docker.com/entando/entando-tomcat-base:v7.5.0-ENG-5316-PR-34-BB-develop
22
ARG VERSION
33

44
### Required OpenShift Labels
55
LABEL name="Entando App" \
66
maintainer="[email protected]" \
77
vendor="Entando Inc." \
88
version="${VERSION}" \
9-
release="7.3.0-fix.2" \
9+
release="7.5.0" \
1010
summary="Entando Application" \
1111
description="This Entando app engine application provides APIs and composition for Entando applications"
1212

1313
COPY target/generated-resources/licenses /licenses
1414
COPY target/generated-resources/licenses.xml /
1515

1616
COPY --chown=185:0 webapp/target/*.war /usr/local/tomcat/webapps/
17+
# Copy CookieProcessor JAR if it exists
18+
COPY --chown=185:0 webapp/target/*-jsessionid-cookie-processor.jar /usr/local/tomcat/lib/
1719

1820
RUN $ENTANDO_COMMON_PATH/init-derby-from-war.sh
1921

Dockerfile.wildfly

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

admin-console/pom.xml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.entando</groupId>
66
<artifactId>app-engine</artifactId>
7-
<version>7.5.0</version>
7+
<version>7.5.0-SNAPSHOT</version>
88
</parent>
99
<groupId>org.entando.entando</groupId>
1010
<artifactId>entando-admin-console</artifactId>
@@ -237,7 +237,7 @@
237237
</dependency>
238238
<dependency>
239239
<groupId>org.jdom</groupId>
240-
<artifactId>jdom</artifactId>
240+
<artifactId>jdom2</artifactId>
241241
</dependency>
242242
<dependency>
243243
<groupId>org.entando.entando</groupId>
@@ -258,18 +258,6 @@
258258
<groupId>org.apache.struts</groupId>
259259
<artifactId>struts2-spring-plugin</artifactId>
260260
</dependency>
261-
<dependency>
262-
<groupId>org.apache.tiles</groupId>
263-
<artifactId>tiles-core</artifactId>
264-
</dependency>
265-
<dependency>
266-
<groupId>org.apache.tiles</groupId>
267-
<artifactId>tiles-request-api</artifactId>
268-
</dependency>
269-
<dependency>
270-
<groupId>org.apache.tiles</groupId>
271-
<artifactId>tiles-ognl</artifactId>
272-
</dependency>
273261
<dependency>
274262
<groupId>org.apache.httpcomponents</groupId>
275263
<artifactId>httpclient</artifactId>
@@ -300,17 +288,26 @@
300288
<artifactId>mockito-junit-jupiter</artifactId>
301289
</dependency>
302290
<dependency>
303-
<groupId>javax.servlet</groupId>
304-
<artifactId>javax.servlet-api</artifactId>
291+
<groupId>jakarta.servlet</groupId>
292+
<artifactId>jakarta.servlet-api</artifactId>
305293
</dependency>
306294
<dependency>
307-
<groupId>javax.servlet.jsp</groupId>
308-
<artifactId>jsp-api</artifactId>
295+
<groupId>jakarta.servlet.jsp</groupId>
296+
<artifactId>jakarta.servlet.jsp-api</artifactId>
297+
</dependency>
298+
<dependency>
299+
<groupId>org.apache.commons</groupId>
300+
<artifactId>commons-fileupload2-jakarta-servlet6</artifactId>
309301
</dependency>
310302
<dependency>
311303
<groupId>org.apache.derby</groupId>
312304
<artifactId>derby</artifactId>
313305
<scope>test</scope>
314306
</dependency>
307+
<dependency>
308+
<groupId>org.apache.derby</groupId>
309+
<artifactId>derbytools</artifactId>
310+
<scope>test</scope>
311+
</dependency>
315312
</dependencies>
316313
</project>

admin-console/src/main/java/com/agiletec/apsadmin/category/helper/CategoryActionHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.List;
1919
import java.util.Map;
2020

21-
import javax.servlet.http.HttpServletRequest;
21+
import jakarta.servlet.http.HttpServletRequest;
2222

2323
import org.entando.entando.ent.exception.EntException;
2424
import org.entando.entando.ent.util.EntLogging.EntLogger;

admin-console/src/main/java/com/agiletec/apsadmin/category/helper/ICategoryActionHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import java.util.Map;
1717

18-
import javax.servlet.http.HttpServletRequest;
18+
import jakarta.servlet.http.HttpServletRequest;
1919

2020

2121
import com.agiletec.aps.system.services.category.Category;

admin-console/src/main/java/com/agiletec/apsadmin/common/DispatchAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.entando.entando.ent.util.EntLogging.EntLogger;
2222
import org.entando.entando.ent.util.EntLogging.EntLogFactory;
2323

24-
import javax.servlet.http.HttpSession;
24+
import jakarta.servlet.http.HttpSession;
2525

2626
/**
2727
* Action specifica per la gestione delle operazioni di login.

0 commit comments

Comments
 (0)