From f3f0102c9c01bbbda23edb57fd0ec1d9ca7adfc7 Mon Sep 17 00:00:00 2001
From: Simon Hirtreiter <14137977+simonhir@users.noreply.github.com>
Date: Fri, 16 Aug 2024 09:33:53 +0200
Subject: [PATCH] Feature/integration release (#70)
* :construction_worker: ci add s3 rest service to image build
* :recycle: pom mv release information to modules
* :recycle: pom rearrange plugins
* :sparkles: pom add needed information for maven release
* :sparkles: pom init maven release
* :construction_worker: ci add maven release configuration
* :construction_worker: pom disable javadoc linting
* :construction_worker: pom javadoc linting only validate not require
* :bug: fix javadoc
---
.github/workflows/maven.yaml | 11 ++
pom.xml | 12 --
refarch-gateway/pom.xml | 38 ++++--
refarch-integrations/pom.xml | 129 ++++++++++++++++--
.../port/in/CreatePresignedUrlsInPort.java | 2 +-
5 files changed, 163 insertions(+), 29 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 44786a21..add94c0c 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -37,6 +37,11 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: "temurin"
cache: "maven"
+ server-id: "central"
+ server-username: CENTRAL_USERNAME
+ server-password: CENTRAL_PASSWORD
+ gpg-private-key: ${{ secrets.gpg_private_key }}
+ gpg-passphrase: SIGN_KEY_PASS
- name: Maven build
if: ${{ inputs.snapshot-release != false }}
run: mvn --batch-mode clean install
@@ -47,6 +52,10 @@ jobs:
git config --global user.name "GitHub Actions"
mvn release:prepare -B -DreleaseVersion=${{ inputs.release-version }} -DdevelopmentVersion=${{ inputs.next-version }} -DpushChanges=false -DremoteTagging=false
mvn release:perform -Darguments="-Dmaven.deploy.skip=true" -DlocalCheckout=true
+ env:
+ SIGN_KEY_PASS: ${{ secrets.gpg_passphrase }}
+ CENTRAL_USERNAME: ${{ secrets.sonatype_username }}
+ CENTRAL_PASSWORD: ${{ secrets.sonatype_password }}
- name: "Upload target artifacts"
uses: actions/upload-artifact@v4
with:
@@ -91,6 +100,8 @@ jobs:
include:
- name: refarch-gateway
path: ./refarch-gateway
+ - name: s3-integration-rest-service
+ path: ./refarch-integrations/refarch-s3-integration/refarch-s3-integration-rest-service
steps:
- name: Checkout code
uses: actions/checkout@v4
diff --git a/pom.xml b/pom.xml
index f60d4a4f..4fcb41fc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,16 +13,4 @@
refarch-gateway
refarch-integrations
-
-
- https://github.com/it-at-m/refarch.git
- scm:git:https://github.com/it-at-m/refarch.git
- scm:git:https://github.com/it-at-m/refarch.git
- HEAD
-
-
-
- MIT
-
-
diff --git a/refarch-gateway/pom.xml b/refarch-gateway/pom.xml
index 189de292..6503a0a0 100644
--- a/refarch-gateway/pom.xml
+++ b/refarch-gateway/pom.xml
@@ -12,9 +12,10 @@
de.muenchen.refarch
refarch-gateway
+ refarch-gateway
+ Ready to use RefArch gateway based on Spring Cloud Gateway
1.1.0-SNAPSHOT
jar
- refarch-gateway
@@ -139,13 +140,7 @@
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- -Dfile.encoding=${project.build.sourceEncoding}
-
-
+
org.apache.maven.plugins
maven-compiler-plugin
@@ -159,6 +154,14 @@
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ -Dfile.encoding=${project.build.sourceEncoding}
+
+
org.jacoco
jacoco-maven-plugin
@@ -214,4 +217,23 @@
+
+
+ https://github.com/it-at-m/refarch.git
+ scm:git:https://github.com/it-at-m/refarch.git
+ scm:git:https://github.com/it-at-m/refarch.git
+ HEAD
+
+
+
+ MIT
+
+
+
+
+ it@M
+ opensource@muenchen.de
+ https://github.com/it-at-m
+
+
diff --git a/refarch-integrations/pom.xml b/refarch-integrations/pom.xml
index 6c95c566..f183d3b1 100644
--- a/refarch-integrations/pom.xml
+++ b/refarch-integrations/pom.xml
@@ -12,9 +12,10 @@
de.muenchen.refarch
refarch-integrations
+ refarch-integrations
+ Collection of different ready to use RefArch integrations
1.1.0-SNAPSHOT
pom
- refarch-integrations
refarch-s3-integration
@@ -37,6 +38,11 @@
2.34.0
1.0.10
+
+ 0.5.0
+ 3.1.1
+ 3.2.4
+
0.8.12
@@ -112,13 +118,7 @@
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- -Dfile.encoding=${project.build.sourceEncoding}
-
-
+
org.apache.maven.plugins
maven-compiler-plugin
@@ -144,6 +144,41 @@
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+ accessibility,html,reference,syntax
+
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ -Dfile.encoding=${project.build.sourceEncoding}
+
+
org.jacoco
jacoco-maven-plugin
@@ -163,6 +198,18 @@
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ ${maven-release-plugin.version}
+
+ true
+ false
+ release
+ deploy
+
+
@@ -199,4 +246,70 @@
+
+
+
+ release
+
+
+
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${central-publishing-maven-plugin.version}
+ true
+
+ true
+ ${project.groupId}:${project.artifactId}:${project.version}
+
+
+ refarch-s3-integration-rest-service
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ ${maven-gpg-plugin.version}
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+ --pinentry-mode
+ loopback
+
+
+
+
+
+
+
+
+
+
+
+ https://github.com/it-at-m/refarch.git
+ scm:git:https://github.com/it-at-m/refarch.git
+ scm:git:https://github.com/it-at-m/refarch.git
+ HEAD
+
+
+
+ MIT
+
+
+
+
+ it@M
+ opensource@muenchen.de
+ https://github.com/it-at-m
+
+
diff --git a/refarch-integrations/refarch-s3-integration/refarch-s3-integration-core/src/main/java/de/muenchen/refarch/integration/s3/application/port/in/CreatePresignedUrlsInPort.java b/refarch-integrations/refarch-s3-integration/refarch-s3-integration-core/src/main/java/de/muenchen/refarch/integration/s3/application/port/in/CreatePresignedUrlsInPort.java
index 4758dd56..6e2be0ff 100644
--- a/refarch-integrations/refarch-s3-integration/refarch-s3-integration-core/src/main/java/de/muenchen/refarch/integration/s3/application/port/in/CreatePresignedUrlsInPort.java
+++ b/refarch-integrations/refarch-s3-integration/refarch-s3-integration-core/src/main/java/de/muenchen/refarch/integration/s3/application/port/in/CreatePresignedUrlsInPort.java
@@ -14,7 +14,7 @@ public interface CreatePresignedUrlsInPort {
* @param event event containing the request.
* @return resulting variable map.
* @throws FileSystemAccessException on S3 errors.
- * @throws javax.validation.ConstraintViolationException if the request is not valid.
+ * @throws jakarta.validation.ConstraintViolationException if the request is not valid.
*/
@NonNull
List createPresignedUrls(@Valid CreatePresignedUrlEvent event) throws FileSystemAccessException;