fix: github-actions workflow
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index db6b928..c79969d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml
@@ -1,5 +1,6 @@ # # Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2026 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License v. 2.0 which is available at @@ -25,22 +26,15 @@ steps: - name: Checkout for build - uses: actions/checkout@v2.3.4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Set up compile JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: #Compile java needs to be the highest to ensure proper compilation of the multi-release jar - distribution: 'adopt' + distribution: 'temurin' java-version: 17 - - name: Maven cache - uses: actions/cache@v2 - env: - cache-name: maven-cache - with: - path: - ~/.m2 - key: build-${{ env.cache-name }} + cache: 'maven' - name: Copyright run: bash etc/copyright.sh - name: Checkstyle @@ -48,11 +42,10 @@ - name: Yasson install run: mvn -U -C -Pstaging clean install -DskipTests - name: Set up JDK for tests - uses: actions/setup-java@v2 - with: - distribution: 'adopt' + uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 + with: #Compile java needs to be the highest to ensure proper compilation of the multi-release jar + distribution: 'temurin' java-version: ${{ matrix.java_version }} + cache: 'maven' - name: Yasson tests run: mvn -U -C -Dmaven.javadoc.skip=true -Pstaging verify - - name: JSONB-API TCK - run: cd yasson-tck && mvn -U -B test
diff --git a/pom.xml b/pom.xml index e6f4adf..d04fac5 100644 --- a/pom.xml +++ b/pom.xml
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2016, 2026 Oracle and/or its affiliates. All rights reserved. Copyright (c) 2026 Contributors to the Eclipse Foundation This program and the accompanying materials are made available under the
diff --git a/src/test/java/org/eclipse/yasson/defaultmapping/SecurityManagerTest.java b/src/test/java/org/eclipse/yasson/defaultmapping/SecurityManagerTest.java index 6e2925b..b956a9e 100644 --- a/src/test/java/org/eclipse/yasson/defaultmapping/SecurityManagerTest.java +++ b/src/test/java/org/eclipse/yasson/defaultmapping/SecurityManagerTest.java
@@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2026 Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2026 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the