Compare commits

..
Author SHA1 Message Date
Arindam Roy 57d5f9c0b4 Fixed copilot comments 2026-06-10 14:29:13 +05:30
Arindam Roy cbed839ab1 Deleted community-packaging jobs 2026-06-10 13:15:47 +05:30
Arindam Roy 3af93f9536 [ACS-11835]: Release and [publish] Alfresco SDK 4.16.0 2026-06-10 12:05:20 +05:30
10 changed files with 35 additions and 99 deletions
-7
View File
@@ -1,7 +0,0 @@
env:
global:
# Both variables are required to be set before the release process starts.
# As the release is triggered by a commit message with "[release]" keyword,
# setting these variables to new values can be done in the same commit and will indicate the release and the dev versions in it.
- RELEASE_VERSION=4.17.0-A2
- DEVELOPMENT_VERSION=4.17.0-A3-SNAPSHOT
+23 -67
View File
@@ -13,9 +13,6 @@ on:
- feature/**
workflow_dispatch:
permissions:
contents: read
env:
JAVA_VERSION: '21'
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
@@ -23,7 +20,6 @@ env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 90
# Note: RELEASE_VERSION and DEVELOPMENT_VERSION are loaded from .github/release-versions.yml
jobs:
pre_commit:
@@ -31,6 +27,25 @@ jobs:
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v15.7.1
veracode_sca:
name: "Veracode - Source Clear Scan (SCA)"
runs-on: ubuntu-latest
if: >
github.ref_name == 'master' ||
github.event_name == 'pull_request'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v15.7.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v15.7.1
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@v15.7.1
continue-on-error: true
with:
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
build:
name: "Build application"
runs-on: ubuntu-latest
@@ -142,69 +157,16 @@ jobs:
- name: "Build"
run: mvn clean install -B ${{ matrix.suite }}
release:
name: "Release"
runs-on: ubuntu-latest
permissions:
contents: write
needs: [tests]
outputs:
release_tag: ${{ steps.release_meta.outputs.release_tag }}
env:
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
if: >
needs.tests.result == 'success' &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'fix/') || startsWith(github.ref_name, 'feature/')) &&
!contains(github.event.head_commit.message, '[no release]') &&
github.event_name != 'pull_request' &&
contains(github.event.head_commit.message, '[release]')
steps:
- name: "Generate GitHub App token"
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.GH_APP_ENGINEERING_CONTRIB_CLIENT_ID }}
private-key: ${{ secrets.GH_APP_ENGINEERING_CONTRIB_PRIVATE_KEY }}
permission-contents: write
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- uses: Alfresco/alfresco-build-tools/.github/actions/env-load-from-yaml@v18.21.2
with:
yml_path: .github/release-versions.yml
- name: "Export release metadata"
id: release_meta
run: echo "release_tag=${RELEASE_VERSION}" >> "$GITHUB_OUTPUT"
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v18.21.2
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v18.21.2
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.2
with:
java-version: ${{ env.JAVA_VERSION }}
- uses: Alfresco/alfresco-build-tools/.github/actions/maven-release-slim@v18.21.2
with:
token: ${{ steps.app-token.outputs.token }}
release-version: ${{ env.RELEASE_VERSION }}
development-version: ${{ env.DEVELOPMENT_VERSION }}
maven-args: >
-DskipTests
-DbuildNumber=${{ github.run_number }}
check_version:
name: "Check version"
runs-on: ubuntu-latest
needs: [tests, release]
needs: [tests]
if: >
needs.tests.result == 'success' &&
contains(github.event.head_commit.message, '[publish]') &&
(needs.release.result == 'success' || needs.release.result == 'skipped')
contains(github.event.head_commit.message, '[publish]')
outputs:
is_ga: ${{ steps.publish_version.outputs.is_ga }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ needs.release.outputs.release_tag || github.ref }}
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v15.7.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v15.7.1
with:
@@ -224,19 +186,13 @@ jobs:
publish:
name: "Publish artifacts"
runs-on: ubuntu-latest
needs: [tests, check_version, release]
needs: [tests, check_version]
if: >
needs.tests.result == 'success' &&
contains(github.event.head_commit.message, '[publish]') &&
needs.check_version.result == 'success' &&
needs.check_version.outputs.is_ga == 'true' &&
(needs.release.result == 'success' || needs.release.result == 'skipped')
contains(github.event.head_commit.message, '[publish]') && needs.check_version.outputs.is_ga == 'true'
env:
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ needs.release.outputs.release_tag || github.ref }}
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v15.7.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v15.7.1
with:
@@ -11,7 +11,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -12,7 +12,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -14,7 +14,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
+1 -1
View File
@@ -17,7 +17,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
+1 -1
View File
@@ -10,7 +10,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
+3 -3
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -81,7 +81,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
<version>3.6.6</version>
<version>3.6.0</version>
<exclusions>
<exclusion>
<artifactId>maven-core</artifactId>
@@ -92,7 +92,7 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>4.12.0</version>
<version>4.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
+1 -17
View File
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.17.0-A2</version>
<version>4.16.0</version>
<name>Alfresco SDK</name>
<description>This aggregator Project builds all modules required for the Alfresco SDK</description>
<packaging>pom</packaging>
@@ -449,22 +449,6 @@
</profile>
</profiles>
<!--
Date: 12-06-2026
Force transitive dependencies to safe versions.
Remove this when bumping the "alfresco-repository" 26.2 GA in the future,
as the fixed version of plexus-utils will be included in the dependency tree of the project.
-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.6.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
+3
View File
@@ -0,0 +1,3 @@
# To avoid the provided dependencies we set the scope to runtime. See: https://docs.veracode.com/r/c_sc_scan_directives
# runtime: to restrict the scan to compile and runtime dependencies.
scope: runtime