#414: avoid NPE evaluating response mimetype when response entity is … #472
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build IPF with Java 17 | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
MAVEN_OPTS: -Xmx2048m | |
# on download timeouts, consider to disable connection pooling | |
# -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 | |
# or consider to restrict the ttl | |
# -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Java 17 build | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn -B clean package --file pom.xml | |
- name: Submit Dependency Snapshot | |
uses: advanced-security/maven-dependency-submission-action@v3 | |
with: | |
ignore-maven-wrapper: true | |
# Publish somewhere | |
# Maybe in a separate action file | |
# for publishing/releasing: https://github.com/marketplace/actions/action-maven-publish | |
# see https://github.com/organizations/oehf/settings/secrets/actions | |
- name: Deploy to Sonatype Snapshot Repo | |
uses: samuelmeuli/action-maven-publish@v1 | |
with: | |
maven_goals_phases: "deploy" | |
maven_args: "-DskipTests" | |
gpg_private_key: ${{ secrets.gpg_private_key }} | |
gpg_passphrase: ${{ secrets.gpg_passphrase }} | |
nexus_username: ${{ secrets.nexus_username }} | |
nexus_password: ${{ secrets.nexus_password }} |