From f1fb515781a327e858404c73761ded02e1d1da28 Mon Sep 17 00:00:00 2001 From: "Wim R. Crols" Date: Tue, 4 Nov 2025 13:39:38 +0100 Subject: [PATCH 1/3] ALFREDAPI-580: Remove JReleaser checking This caused problems, mostly because JReleaser and Kordamp are not familiar with Alfresco AMP's, causing all kinds of check to fail that are only needed with JAR's. --- alfresco/build.gradle | 5 ----- build.gradle | 25 ++++++++++++++++++++++++- publish.gradle | 2 -- settings.gradle | 5 ++++- 4 files changed, 28 insertions(+), 9 deletions(-) diff --git a/alfresco/build.gradle b/alfresco/build.gradle index 25f0623e..8e07f86c 100644 --- a/alfresco/build.gradle +++ b/alfresco/build.gradle @@ -44,7 +44,6 @@ subprojects { } } } - project.tasks.jar.enabled = false // Extend amp plugin task: @@ -62,8 +61,4 @@ subprojects { from("${rootProject.projectDir}/src/config/messages/") } } - - afterEvaluate { - signMavenPublication.dependsOn amp - } } diff --git a/build.gradle b/build.gradle index 35de2d5d..9e1a0e14 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,6 @@ plugins { id 'eu.xenit.alfresco' version '1.1.0' apply false id 'eu.xenit.docker-alfresco' version '5.5.0' apply false id 'eu.xenit.docker-compose' version '5.5.0' apply false - id 'eu.xenit.enterprise-conventions.oss' version '0.6.2' } def static getVersionQualifier(String branch_name) { @@ -22,6 +21,30 @@ ext { http_version = '4.5.13' // Used by integration tests } +// See https://jreleaser.org/guide/latest/reference/deploy/maven/maven-central.html for syntax +jreleaser { + deploy { + maven { + mavenCentral { + release { + // Add an override for each artifact we want to publish, because we want to + // disable requirements checking for each of them. + ['interface', '231', '232', '233', '234', '251'].each { suffix -> + artifactOverride { + // Match artifact by artifactId + artifactId = "alfred-api-${suffix}" + verifyPom = false + jar = false + sourceJar = false + javadocJar = false + } + } + } + } + } + } +} + allprojects { apply plugin: 'java' diff --git a/publish.gradle b/publish.gradle index 86d37f0a..9dbd32e0 100644 --- a/publish.gradle +++ b/publish.gradle @@ -1,6 +1,4 @@ apply plugin: 'maven-publish' -apply plugin: 'signing' -apply plugin: 'eu.xenit.enterprise-conventions.oss' publishing { publications { diff --git a/settings.gradle b/settings.gradle index 0d76c6de..e84b5d8b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,7 @@ +plugins { + id 'eu.xenit.enterprise-conventions.oss' version '0.6.2' +} + rootProject.name = 'alfred-api' include ':alfred-api-interface' @@ -9,7 +13,6 @@ include ':alfred-api-integrationtests-client:model-amp' include ':alfred-api-integrationtests-server' include ':docs' - for (String version : ['23.1', '23.2', '23.3', '23.4', '25.1']) { def shortVersion = version.replaceAll('\\.', '') From 2b6437b37be57dbd7b5e1faaba3e182c45a779c7 Mon Sep 17 00:00:00 2001 From: "Wim R. Crols" Date: Tue, 4 Nov 2025 13:39:38 +0100 Subject: [PATCH 2/3] ALFREDAPI-580: Re-add signMavenPublication --- alfresco/build.gradle | 5 +++++ publish.gradle | 1 + 2 files changed, 6 insertions(+) diff --git a/alfresco/build.gradle b/alfresco/build.gradle index 8e07f86c..25f0623e 100644 --- a/alfresco/build.gradle +++ b/alfresco/build.gradle @@ -44,6 +44,7 @@ subprojects { } } } + project.tasks.jar.enabled = false // Extend amp plugin task: @@ -61,4 +62,8 @@ subprojects { from("${rootProject.projectDir}/src/config/messages/") } } + + afterEvaluate { + signMavenPublication.dependsOn amp + } } diff --git a/publish.gradle b/publish.gradle index 9dbd32e0..b1baecae 100644 --- a/publish.gradle +++ b/publish.gradle @@ -1,4 +1,5 @@ apply plugin: 'maven-publish' +apply plugin: 'signing' publishing { publications { From ed3ebd01eac52d8681b470428cd8430c891d2b38 Mon Sep 17 00:00:00 2001 From: "Wim R. Crols" Date: Tue, 4 Nov 2025 13:39:38 +0100 Subject: [PATCH 3/3] ALFREDAPI-580: Update release date in Changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c12003..99dd5d87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Alfred API - Changelog -## 6.1.1 (2025-11-23) +## 6.1.1 (2025-11-04) ### Added * [ALFREDAPI-581](https://xenitsupport.jira.com/browse/ALFREDAPI-581): Support ElasticSearch (Alfresco Enterprise Search)