Skip to content

Commit 9e3aa9a

Browse files
mattwigwayansoncfit
authored andcommitted
changes for gradle 9
1 parent 4bd0f6e commit 9e3aa9a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id 'application'
44
id 'maven-publish'
55
id 'com.palantir.git-version' version '2.0.0'
6-
id 'com.github.johnrengelman.shadow' version '8.1.1'
6+
id 'com.gradleup.shadow' version '9.0.1'
77
}
88

99
group = 'com.conveyal'
@@ -26,7 +26,7 @@ jar {
2626
manifest {
2727
attributes 'Automatic-Module-Name': 'com.conveyal.r5',
2828
'Main-Class': 'com.conveyal.analysis.BackendMain',
29-
'Build-Jdk-Spec': targetCompatibility.getMajorVersion(),
29+
'Build-Jdk-Spec': java.toolchain.languageVersion,
3030
'Implementation-Title': 'Conveyal Analysis Backend',
3131
'Implementation-Vendor': 'Conveyal LLC',
3232
'Implementation-Version': project.version
@@ -270,5 +270,9 @@ dependencies {
270270
// Although rarely used it should be low-impact: it is a test-only dependency with no transitive dependenices.
271271
testImplementation('org.jfree:jfreechart:1.5.1')
272272

273+
// Load the test launcher, no longer automatic in Gradle 9:
274+
// https://github.com/gradle/gradle/issues/34512
275+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
276+
273277
}
274278

0 commit comments

Comments
 (0)