[gradle](deps): Bump org.slf4j:slf4j-simple from 2.0.11 to 2.0.12 (#139) #503
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: Test all JDKs on all OSes and Publish | |
on: [push, pull_request] | |
permissions: write-all | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
name: "🧪 Test" | |
strategy: | |
fail-fast: false | |
matrix: | |
java_version: [11, 17, 21] # Test all LTS releases and the latest one | |
os: [windows-latest, macOS-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java_version }} | |
uses: actions/[email protected] | |
with: | |
distribution: "zulu" | |
java-version: ${{ matrix.java_version }} | |
- name: Validate Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Setup and Run Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
arguments: check | |
coverage: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
name: "📄 Codecov Report" | |
steps: | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Validate Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Setup and Run Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
arguments: jacocoTestReport | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
files: "${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml" | |
verbose: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
publish-release: | |
#TODO Support releases on 5.x | |
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository == 'javalin/javalin-ssl' | |
needs: | |
- test | |
name: "🛫 Publish to maven central" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Generate version | |
uses: HardNorth/[email protected] | |
with: | |
version-source: file | |
version-file: build.gradle.kts | |
version-file-extraction-pattern: '(?<=version\s*=\s*")\S+(?=")' | |
- name: Validate Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Publish to Reposilite | |
uses: gradle/actions/setup-gradle@v3 | |
env: | |
MAVEN_NAME: "${{ secrets.MAVEN_NAME }}" | |
MAVEN_TOKEN: "${{ secrets.MAVEN_TOKEN }}" | |
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | |
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | |
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | |
with: | |
arguments: publishMavenPublicationToReposiliteRepository | |
- name: Publish to Maven Central | |
if: "!contains(env.CURRENT_VERSION, 'SNAPSHOT')" | |
uses: gradle/actions/setup-gradle@v3 | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}" | |
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}" | |
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | |
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | |
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | |
with: | |
arguments: publishToSonatype closeAndReleaseStagingRepository | |
- name: Create Pre-Release for Betas | |
if: contains(env.CURRENT_VERSION, 'beta') | |
uses: ncipollo/[email protected] | |
with: | |
tag: ${{ env.CURRENT_VERSION }} | |
generateReleaseNotes: true | |
commit: main | |
prerelease: true | |
body: | | |
## Download Instructions | |
### Maven | |
```xml | |
<dependency> | |
<groupId>io.javalin.community.ssl</groupId> | |
<artifactId>ssl-plugin</artifactId> | |
<version>${{ env.CURRENT_VERSION }}</version> | |
</dependency> | |
``` | |
### Gradle | |
```groovy | |
implementation('io.javalin.community.ssl:ssl-plugin:${{ env.CURRENT_VERSION }}') | |
``` | |
- name: Create Release | |
if: "!contains(env.CURRENT_VERSION, 'beta') && !contains(env.CURRENT_VERSION, 'SNAPSHOT')" | |
uses: ncipollo/[email protected] | |
with: | |
tag: ${{ env.CURRENT_VERSION }} | |
generateReleaseNotes: true | |
commit: main | |
body: | | |
## Download Instructions | |
### Maven | |
```xml | |
<dependency> | |
<groupId>io.javalin.community.ssl</groupId> | |
<artifactId>ssl-plugin</artifactId> | |
<version>${{ env.CURRENT_VERSION }}</version> | |
</dependency> | |
``` | |
### Gradle | |
```groovy | |
implementation('io.javalin.community.ssl:ssl-plugin:${{ env.CURRENT_VERSION }}') | |
``` | |
publish-snapshot: | |
if: github.ref == 'refs/heads/dev' && github.event_name != 'pull_request' && github.repository == 'javalin/javalin-ssl' | |
needs: | |
- test | |
name: "🛫 Publish snapshot to reposilite" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Validate Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Publish to Reposilite | |
uses: gradle/actions/setup-gradle@v3 | |
env: | |
MAVEN_NAME: "${{ secrets.MAVEN_NAME }}" | |
MAVEN_TOKEN: "${{ secrets.MAVEN_TOKEN }}" | |
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | |
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | |
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | |
with: | |
arguments: publishMavenPublicationToReposiliteRepository |