update java 21

This commit is contained in:
vivekkr0311
2026-02-23 19:50:59 +05:30
parent 1284230e0c
commit 691bf9e634
4 changed files with 15 additions and 6 deletions
+9
View File
@@ -14,6 +14,7 @@ on:
workflow_dispatch:
env:
JAVA_VERSION: '21'
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_CENTRAL_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
@@ -37,6 +38,8 @@ jobs:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v12.11.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v12.11.0
with:
java-version: ${{ env.JAVA_VERSION }}
- name: "Clean-up SNAPSHOT artifacts"
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
- uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v12.11.0
@@ -55,6 +58,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v12.11.0
with:
java-version: ${{ env.JAVA_VERSION }}
- name: "Build"
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: "Verify"
@@ -188,6 +193,8 @@ jobs:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v12.11.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v12.11.0
with:
java-version: ${{ env.JAVA_VERSION }}
- name: "Check version"
id: publish_version
run: |
@@ -210,6 +217,8 @@ jobs:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v12.11.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v12.11.0
with:
java-version: ${{ env.JAVA_VERSION }}
- name: "Build"
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Set up Maven Central credentials
+2 -2
View File
@@ -10,8 +10,8 @@
<properties>
<slf4j.version>1.7.12</slf4j.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
<parent>
+2 -2
View File
@@ -17,7 +17,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.5</version>
<version>3.15.2</version>
<executions>
<execution>
<id>generated-helpmojo</id>
@@ -162,7 +162,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.5</version>
<version>3.15.2</version>
</plugin>
</plugins>
</reporting>
+2 -2
View File
@@ -49,8 +49,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.archetype.version>3.0.0</maven.archetype.version>
<alfresco.sdk.parent.version>${project.version}</alfresco.sdk.parent.version>
<alfresco.sdk.tests.exclude>*/*-enterprise*/*</alfresco.sdk.tests.exclude>