Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/maven-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,26 @@ jobs:
distribution: adopt
java-version: '21'
cache: maven
server-id: central
server-username: MAVEN_CENTRAL_USER
server-password: MAVEN_CENTRAL_TOKEN
- name: Login to registry.redhat.io
uses: docker/login-action@v3.7.0
with:
username: ${{ secrets.REDHAT_REGISTRY_USER }}
password: ${{ secrets.REDHAT_REGISTRY_TOKEN }}
registry: registry.redhat.io
- name: Build with Maven
run: |
VERSION=${{ github.event_name == 'pull_request' && format('pr{0}-SNAPSHOT', github.event.pull_request.number) || 'latest-SNAPSHOT' }}
mvn ${{ runner.debug && '-X -e' || '' }} -B deploy -Drevision=$VERSION -Psonar,release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn ${{ runner.debug && '-X -e' || '' }} -B install -Psonar
MAVEN_GPG_KEY: ${{ secrets.OPENAPI_OSSRH_GPG_SECRET_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OPENAPI_OSSRH_GPG_SECRET_KEY_PASSWORD }}
MAVEN_CENTRAL_USER: ${{ secrets.OPENAPI_OSSRH_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OPENAPI_OSSRH_TOKEN }}
- name: Publish doc
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ Documentation on how to use this library is available on https://belgif.github.i
## Build Process

The build process is documented [here](https://github.com/belgif/rest-problem-java/blob/master/BUILDING.md).

## Maven Central

* Release artifacts are available on Maven Central (https://central.sonatype.com/namespace/io.github.belgif.rest.problem)
* Snapshot artifacts are also available (`latest-SNAPSHOT` for the main branch, `pr<number>-SNAPSHOT` for PR branches):

```xml
<repositories>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
```