Skip to content

Commit 2d4cc06

Browse files
authored
Upgrade to gradle 8.5 and add java 21 build (#995)
1 parent 83ced52 commit 2d4cc06

File tree

7 files changed

+6
-302
lines changed

7 files changed

+6
-302
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
java: [8, 11, 17, 18] # todo: update to latest Gradle version for Java 21 support
13+
java: [ 8, 11, 17, 18, 21 ]
1414
fail-fast: false
1515
max-parallel: 4
1616
name: JDK ${{ matrix.java }}

build.gradle

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
}
77
}
88
dependencies {
9-
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
109
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:6.1.0'
1110
}
1211
}
@@ -114,10 +113,11 @@ subprojects {
114113
mavenJava(MavenPublication) {
115114
from components.java
116115

117-
artifactId = jar.baseName
116+
artifactId = project.name
117+
//artifactId = jar.archiveBaseName
118118

119119
pom {
120-
name = jar.baseName
120+
name = project.name
121121
description = 'A library to query and verify JSON'
122122
url = 'https://github.com/jayway/JsonPath'
123123

@@ -149,9 +149,6 @@ subprojects {
149149
}
150150

151151
wrapper {
152-
gradleVersion = '7.4.2'
152+
gradleVersion = '8.5'
153153
}
154154

155-
//Task used by Heroku for staging
156-
task stage(dependsOn: [':json-path-web-test:clean', 'json-path-web-test:jar', 'json-path-web-test:shadowJar']) {}
157-

gradle/binaryCompatibility.gradle

-138
This file was deleted.

gradle/binarycompat-report.groovy

-153
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

json-path-assert/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
description = "Assertions on Json using JsonPath"
22

33
jar {
4-
baseName 'json-path-assert'
54
bnd(
65
'Implementation-Title': 'json-path-assert', 'Implementation-Version': archiveVersion
76
)

json-path/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
description = "Java port of Stefan Goessner JsonPath."
22

33
jar {
4-
baseName 'json-path'
54
bnd(
65
'Automatic-Module-Name': 'json.path',
76
'Implementation-Title': 'json-path', 'Implementation-Version': archiveVersion,

0 commit comments

Comments
 (0)