diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07c6835b..2e8c7426 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '8', '11', '17' ] + java: [ '11', '17', '21' ] name: Temurin ${{ matrix.java }} steps: - uses: actions/checkout@v3 diff --git a/.sdkmanrc b/.sdkmanrc index 49f2c8cd..25b2e5bc 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1,3 +1,3 @@ # Enable auto-env through the sdkman_auto_env config # Add key=value pairs of SDKs to use below -java=17.0.7-tem +java=21-librca diff --git a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/schedule/CompositeParserTest.java b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/schedule/CompositeParserTest.java index c8c8f729..7e8c0255 100644 --- a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/schedule/CompositeParserTest.java +++ b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/schedule/CompositeParserTest.java @@ -64,7 +64,7 @@ public void fails_when_one_required_delegate_fails() { @Test public void cannot_create_from_null_or_empty_list() { assertUnableToCreateParser(null); - assertUnableToCreateParser(); + assertUnableToCreateParser(new Parser[] {}); } @Test @@ -85,7 +85,7 @@ static void assertParsingResult(Schedule expected, Parser... parsers) { assertEquals(Optional.of(expected), CompositeParser.of(parsers).parse(ANY_SCHEDULE_STRING)); } - static void assertUnableToCreateParser(Parser... parsers) { + static void assertUnableToCreateParser(Parser[] parsers) { try { CompositeParser.of(parsers); fail("Should have thrown IllegalArgumentException"); diff --git a/pom.xml b/pom.xml index bc1ab881..57aaef8e 100644 --- a/pom.xml +++ b/pom.xml @@ -28,9 +28,10 @@ UTF-8 - 1.8 + 11 ${jdk.version} ${jdk.version} + ${jdk.version} ${project.basedir}/.license @@ -180,6 +181,12 @@ META-INF/** + + com.github.kagkarlsson:micro-jdbc:* + + META-INF/** + +