[ACS-10941][MNT-25301]: SDK - Intermediate versions must not be published to Maven Central (#733)

This commit is contained in:
Vivek Kumar
2026-01-28 15:06:20 +05:30
committed by GitHub
parent 7d69fb289f
commit 4737496272
9 changed files with 42 additions and 18 deletions
+26 -2
View File
@@ -168,12 +168,36 @@ jobs:
- name: "Build"
run: mvn clean install -B ${{ matrix.suite }}
publish:
name: "Publish artifacts"
check_version:
name: "Check version"
runs-on: ubuntu-latest
needs: [tests]
if: >
contains(github.event.head_commit.message, '[publish]')
outputs:
is_ga: ${{ steps.publish_version.outputs.is_ga }}
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
- name: "Check version"
id: publish_version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "is_ga=true" >> $GITHUB_OUTPUT
echo "GA version detected: $VERSION"
else
echo "is_ga=false" >> $GITHUB_OUTPUT
echo "Non GA version detected: $VERSION"
fi
publish:
name: "Publish artifacts"
runs-on: ubuntu-latest
needs: [tests, check_version]
if: >
contains(github.event.head_commit.message, '[publish]') && needs.check_version.outputs.is_ga == 'true'
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
@@ -11,7 +11,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -54,4 +54,4 @@
</plugins>
</build>
</project>
</project>
@@ -5,8 +5,8 @@
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<name>AIO - SDK 4.13.0-A1</name>
<description>All-In-One (AIO) project for SDK 4.13.0-A1</description>
<name>AIO - SDK 4.13.0</name>
<description>All-In-One (AIO) project for SDK 4.13.0</description>
<packaging>pom</packaging>
<prerequisites>
@@ -487,4 +487,4 @@
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
</project>
@@ -12,7 +12,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -55,4 +55,4 @@
</plugins>
</build>
</project>
</project>
@@ -14,7 +14,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -57,4 +57,4 @@
</plugins>
</build>
</project>
</project>
+2 -2
View File
@@ -17,7 +17,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -84,4 +84,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
+2 -2
View File
@@ -10,7 +10,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -49,4 +49,4 @@
</dependency>
</dependencies>
</project>
</project>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
+2 -2
View File
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.13.0-A1</version>
<version>4.13.0</version>
<name>Alfresco SDK</name>
<description>This aggregator Project builds all modules required for the Alfresco SDK</description>
<packaging>pom</packaging>
@@ -30,7 +30,7 @@
<connection>scm:git:${scm.url.base}.git</connection>
<developerConnection>scm:git:${scm.url.base}</developerConnection>
<url>${scm.url.base}</url>
<tag>alfresco-sdk-aggregator-4.13.0-A1</tag>
<tag>alfresco-sdk-aggregator-${project.version}</tag>
</scm>
<!-- All the modules of the Alfresco SDK -->