Skip to content

Commit

Permalink
Propagation of exceptions, gpg signing
Browse files Browse the repository at this point in the history
  • Loading branch information
predic8 committed Aug 5, 2024
1 parent 1aeb964 commit 9aa5cf6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
--no-transfer-progress \
--batch-mode \
-DskipTests
- id: install-secret-key
name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- id: build-artifact
name: Build release artefacts
run: |
Expand Down
15 changes: 14 additions & 1 deletion BUILD.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# New Release

- Edit version number in POM
- Run github action `Create Release` manually and specify version as input
- Run github action `Create Release` manually and specify version as input

## Publish to Maven Central

Manual process to publish to Maven Central. At the moment publishing using the maven plugin is broken for the new process.

- Check version number in POM
- export GPG_TTY=$(tty)
- mvn -DskipTests -DcreateChecksum=true install gpg:sign
- Enter PGP Key
- Zip ./m2/repository/io/membrane-api/jmediator-spring-boot-starter
- Login at: https://central.sonatype.com and upload ZIP file

Todo: - Use maven plugin to publish
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.membrane-api</groupId>
<artifactId>jmediator</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>

<name>JMediator</name>
<description>Simple mediator implementation for Java. Makes it possible to use the Vertical Slice Architecture with
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/membrane_api/jmediator/JMediator.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public <T> T send(IRequest<T> request) throws Throwable {
return bam.invoke(request);
} catch (ReflectiveOperationException e) {
log.error("Cannot call method %s on %s.".formatted(bam.method.getName(), bam.bean.getClass()),e);
throw new RuntimeException("Cannot call method %s on %s.".formatted(bam.method.getName(), bam.bean.getClass()));
throw e.getCause();
}
}

Expand Down

0 comments on commit 9aa5cf6

Please sign in to comment.