Skip to content

Commit

Permalink
Refactor gradle script, remove circleci config, add JDK 21 to matrix …
Browse files Browse the repository at this point in the history
…build (#159)

* remove circleci config
* Update github actions
* Add JDK 21 to matrix build
  • Loading branch information
kpavlov committed Jan 2, 2024
1 parent 8bf9322 commit 9ce602c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
13 changes: 0 additions & 13 deletions .circleci/config.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ jobs:

strategy:
matrix:
java: [ '11', '17' ]
java: [ '11', '17', '21' ]

name: Build under JDK ${{ matrix.Java }}

steps:
- name: Checkout github repo (+ download lfs dependencies)
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
Expand All @@ -48,8 +46,8 @@ jobs:
gradle-version: wrapper
arguments: check build --stacktrace
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
report_paths: '**/TEST-*.xml'

2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11
11.0
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ dependencies {
}

group = "com.github.kpavlov.jreactive8583"
version = if (findProperty("version") != "unspecified") findProperty("version")
else "0.0.1-SNAPSHOT"
version = (
if (findProperty("version") != "unspecified") {
findProperty("version")!!
} else {
"0.0.1-SNAPSHOT"
}
)
description = "ISO8583 Connector for Netty"
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11
Expand All @@ -68,7 +73,9 @@ tasks.test {
useJUnitPlatform()
testLogging {
events = setOf(
TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.FAILED
)
}
}
Expand Down

0 comments on commit 9ce602c

Please sign in to comment.