Skip to content

Commit

Permalink
JPMS: define Automatic-Module-Name as json.path (#966)
Browse files Browse the repository at this point in the history
* define Automatic-Module-Name

* cannot build with Java 21 until Gradle is updated
  • Loading branch information
SingingBush authored Jan 2, 2024
1 parent 1a57f78 commit 2d57ab3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions json-path/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2d57ab3

Please sign in to comment.