From 2d57ab361512451fc3352816648357ffbd5c2a13 Mon Sep 17 00:00:00 2001 From: Samael Date: Tue, 2 Jan 2024 16:22:50 +0000 Subject: [PATCH] JPMS: define Automatic-Module-Name as json.path (#966) * define Automatic-Module-Name * cannot build with Java 21 until Gradle is updated --- .github/workflows/ci.yml | 9 ++++++--- json-path/build.gradle | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b855664..10f5088e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,17 +10,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11, 17, 18] + java: [8, 11, 17, 18] # todo: update to latest Gradle version for Java 21 support fail-fast: false max-parallel: 4 name: JDK ${{ matrix.java }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: temurin + cache: 'gradle' + - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/json-path/build.gradle b/json-path/build.gradle index 5ae733be..a24d7e6e 100644 --- a/json-path/build.gradle +++ b/json-path/build.gradle @@ -4,6 +4,7 @@ description = "Java port of Stefan Goessner JsonPath." jar { baseName 'json-path' bnd ( + 'Automatic-Module-Name': 'json.path', 'Implementation-Title': 'json-path', 'Implementation-Version': archiveVersion, 'Import-Package': 'org.json.*;resolution:=optional, com.google.gson.*;resolution:=optional, com.fasterxml.jackson.*;resolution:=optional, org.apache.tapestry5.json.*;resolution:=optional, org.codehaus.jettison.*;resolution:=optional, jakarta.json.*;resolution:=optional, *', 'Export-Package': 'com.jayway.jsonpath,com.jayway.jsonpath.spi,com.jayway.jsonpath.spi.cache,com.jayway.jsonpath.spi.json,com.jayway.jsonpath.spi.mapper'