mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-10 14:12:09 +00:00
ACS-3347 Upgrade to Java 17 (#1486)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
dist: xenial
|
dist: xenial
|
||||||
language: java
|
language: java
|
||||||
jdk: openjdk11
|
jdk: openjdk17
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@@ -53,7 +53,14 @@ if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && [ "${TRAVIS_BUILD_STA
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
SHARE_UPSTREAM_REPO="github.com/Alfresco/alfresco-community-share.git"
|
SHARE_UPSTREAM_REPO="github.com/Alfresco/alfresco-community-share.git"
|
||||||
|
# Temporarily opening reflective access during compilation for community-share
|
||||||
|
# This could be removed once community-share will become Java 17 compliant
|
||||||
|
# (Maven plugins included e.g.: maven-war-plugin)
|
||||||
|
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED \
|
||||||
|
--add-opens=java.base/java.lang=ALL-UNNAMED \
|
||||||
|
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
|
||||||
|
--add-opens=java.base/java.text=ALL-UNNAMED \
|
||||||
|
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
|
||||||
# Checkout the upstream share project (tag or branch; + build if the latter)
|
# Checkout the upstream share project (tag or branch; + build if the latter)
|
||||||
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] ; then
|
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] ; then
|
||||||
pullAndBuildSameBranchOnUpstream "${SHARE_UPSTREAM_REPO}" "-Pbuild-docker-images -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER ${REPO_IMAGE} -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
|
pullAndBuildSameBranchOnUpstream "${SHARE_UPSTREAM_REPO}" "-Pbuild-docker-images -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER ${REPO_IMAGE} -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
|
||||||
|
@@ -114,8 +114,10 @@
|
|||||||
<suiteXmlFiles>
|
<suiteXmlFiles>
|
||||||
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
|
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
|
||||||
</suiteXmlFiles>
|
</suiteXmlFiles>
|
||||||
|
<!-- Keeping illegal-access=warn for Java 11 compatibility, even though it has no effect on JDK 17 -->
|
||||||
<argLine>
|
<argLine>
|
||||||
--illegal-access=warn
|
--illegal-access=warn
|
||||||
|
--add-opens=java.base/java.lang=ALL-UNNAMED
|
||||||
</argLine>
|
</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@@ -84,8 +84,10 @@
|
|||||||
<suiteXmlFiles>
|
<suiteXmlFiles>
|
||||||
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
|
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
|
||||||
</suiteXmlFiles>
|
</suiteXmlFiles>
|
||||||
|
<!-- Keeping illegal-access=warn for Java 11 compatibility, even though it has no effect on JDK 17 -->
|
||||||
<argLine>
|
<argLine>
|
||||||
--illegal-access=warn
|
--illegal-access=warn
|
||||||
|
--add-opens=java.base/java.lang=ALL-UNNAMED
|
||||||
</argLine>
|
</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
Reference in New Issue
Block a user