generated from javalin/javalin-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate build.gradle to kotlin * Remove Lombok * Migrate Integration tests to Kotlin * Migrate Unit tests to kotlin and rename test dir roots * Bumped to `6.0.0-SNAPSHOT` and refactored test directories * Refactor source code to Kotlin * Tests, config and API refactors/cleanups * Update .editorconfig and .gitignore * Refactor code for Javalin 6.0.0-beta.4, removed http3 and minor cleanups * Update dependencies in build.gradle.kts * Update workflows * Update Kotlin and Gradle versions * Fix tests
- Loading branch information
1 parent
e679290
commit 4af9952
Showing
79 changed files
with
3,751 additions
and
3,684 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [11, 17, 18] # Test all LTS releases and the latest one | ||
java_version: [11, 17, 21] # Test all LTS releases and the latest one | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
|
@@ -33,9 +33,6 @@ jobs: | |
needs: | ||
- test | ||
name: "📄 Codecov Report" | ||
strategy: | ||
matrix: | ||
test-type: [unit, integration] | ||
steps: | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
|
@@ -52,20 +49,20 @@ jobs: | |
- name: Setup and Run Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: ${{ matrix.test-type }}TestsCoverageReport | ||
arguments: jacocoTestReport | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: "${{ github.workspace }}/build/reports/jacoco/${{ matrix.test-type }}TestsCoverageReport/${{ matrix.test-type }}TestsCoverageReport.xml" | ||
flags: "${{ matrix.test-type }}Tests" | ||
files: "${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml" | ||
verbose: true | ||
token: "${{ secrets.CODECOV_TOKEN }}" | ||
publish: | ||
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 repo" | ||
name: "🛫 Publish to maven central" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -81,8 +78,8 @@ jobs: | |
uses: HardNorth/[email protected] | ||
with: | ||
version-source: file | ||
version-file: build.gradle | ||
version-file-extraction-pattern: '(?<=version\s*=\s*'')\S+(?='')' | ||
version-file: build.gradle.kts | ||
version-file-extraction-pattern: '(?<=version\s*=\s*"")\S+(?="")' | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
@@ -110,8 +107,8 @@ jobs: | |
with: | ||
arguments: publishToSonatype closeAndReleaseStagingRepository | ||
|
||
- name: Create Pre-Release | ||
if: contains(env.CURRENT_VERSION, 'SNAPSHOT') | ||
- name: Create Pre-Release for Betas | ||
if: contains(env.CURRENT_VERSION, 'beta') | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: ${{ env.CURRENT_VERSION }} | ||
|
@@ -122,31 +119,19 @@ jobs: | |
## Download Instructions | ||
### Maven | ||
```xml | ||
<repository> | ||
<id>reposilite-repository-snapshots</id> | ||
<name>Reposilite Repository</name> | ||
<url>https://maven.reposilite.com/snapshots</url> | ||
</repository> | ||
``` | ||
```xml | ||
<dependency> | ||
<groupId>io.javalin.community.ssl</groupId> | ||
<artifactId>ssl-plugin</artifactId> | ||
<version>${{ env.CURRENT_VERSION }}</version> | ||
</dependency> | ||
``` | ||
### Gradle | ||
```groovy | ||
maven { | ||
url "https://maven.reposilite.com/snapshots" | ||
} | ||
``` | ||
```groovy | ||
implementation('io.javalin.community.ssl:ssl-plugin:${{ env.CURRENT_VERSION }}') | ||
``` | ||
- name: Create Release | ||
if: "!contains(env.CURRENT_VERSION, 'SNAPSHOT')" | ||
if: "!contains(env.CURRENT_VERSION, 'beta') && !contains(env.CURRENT_VERSION, 'SNAPSHOT')" | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: ${{ env.CURRENT_VERSION }} | ||
|
@@ -166,6 +151,32 @@ jobs: | |
```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@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Publish to Reposilite | ||
uses: gradle/[email protected] | ||
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 |
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
Oops, something went wrong.