Skip to content

Commit

Permalink
Set Java 17 as the baseline for this project (#384)
Browse files Browse the repository at this point in the history
* Set Java 17 as the baseline for this project

* gebruik java 17
  • Loading branch information
mprins authored Dec 24, 2024
1 parent b7a8809 commit bc33d91
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/cache@v4
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
path: ~/.m2/repository
key: setup-java-Linux-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
setup-java-Linux-maven-
java-version: 17
distribution: 'temurin'
cache: 'maven'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 11, 17, 21 ]
java: [ 17, 21 ]
java-dist: [ 'temurin' ]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/owasp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: 'zulu'
cache: 'maven'

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nl.b3p</groupId>
<artifactId>kadaster-gds2</artifactId>
<version>3.2-SNAPSHOT</version>
<version>4.0-SNAPSHOT</version>
<packaging>jar</packaging>
<description>JAX-WS classes voor benaderen van de Generieke Download Service 2 van het Kadaster.</description>
<name>Kadaster-GDS2</name>
<properties>
<java.version>11</java.version>
<java.version>17</java.version>
<project.build.sourceVersion>${java.version}</project.build.sourceVersion>
<project.build.targetVersion>${java.version}</project.build.targetVersion>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/nl/b3p/gds2/GDS2UtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.GregorianCalendar;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;

/**
Expand Down Expand Up @@ -38,6 +39,7 @@ public void testGetDatumTijd_null() {
}


@SuppressWarnings("deprecation")
@Test
public void testGetDatumTijd_nu() {
final GregorianCalendar cal = GDS2Util.getDatumTijd("nu");
Expand All @@ -63,6 +65,7 @@ public void testGetDatumTijd_before() {
public void testGetXMLDatumTijd_int_int_int() {
final XMLGregorianCalendar cal = GDS2Util.getXMLDatumTijd(2020, 3, 23);

assertNotNull(cal);
assertEquals(2020, cal.getYear());
assertEquals(3, cal.getMonth());
assertEquals(23, cal.getDay());
Expand Down

0 comments on commit bc33d91

Please sign in to comment.