mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Upgrade to Gradle 8.14.3 (#8164)
This fixes local builds with JDK 24. I fixed deprecation warnings from `./gradlew wrapper --warning-mode all` as well.
This commit is contained in:
@@ -162,7 +162,7 @@ model {
|
||||
|
||||
new groovy.json.JsonSlurper().parseText(exampleFile.text).each { entry ->
|
||||
project.tasks.create("run${entry.foldername}", JavaExec) { run ->
|
||||
run.group "run examples"
|
||||
run.group = "run examples"
|
||||
run.mainClass = "edu.wpi.first.wpilibj.examples." + entry.foldername + "." + entry.mainclass
|
||||
run.classpath = sourceSets.main.runtimeClasspath
|
||||
run.dependsOn it.tasks.install
|
||||
@@ -174,7 +174,7 @@ model {
|
||||
}
|
||||
}
|
||||
project.tasks.create("test${entry.foldername}", Test) { testTask ->
|
||||
testTask.group "verification"
|
||||
testTask.group = "verification"
|
||||
testTask.useJUnitPlatform()
|
||||
testTask.filter {
|
||||
includeTestsMatching("edu.wpi.first.wpilibj.examples.${entry.foldername}.*")
|
||||
@@ -195,7 +195,7 @@ model {
|
||||
testTask.systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
|
||||
testTask.testLogging {
|
||||
events "failed"
|
||||
exceptionFormat "full"
|
||||
exceptionFormat = "full"
|
||||
}
|
||||
testTask.systemProperty 'java.library.path', filePath
|
||||
|
||||
@@ -207,7 +207,7 @@ model {
|
||||
}
|
||||
new groovy.json.JsonSlurper().parseText(snippetsFile.text).each { entry ->
|
||||
project.tasks.create("runSnippet${entry.foldername}", JavaExec) { run ->
|
||||
run.group "run snippets"
|
||||
run.group = "run snippets"
|
||||
run.mainClass = "edu.wpi.first.wpilibj.snippets." + entry.foldername + "." + entry.mainclass
|
||||
run.classpath = sourceSets.main.runtimeClasspath
|
||||
run.dependsOn it.tasks.install
|
||||
@@ -219,7 +219,7 @@ model {
|
||||
}
|
||||
}
|
||||
project.tasks.create("testSnippet${entry.foldername}", Test) { testTask ->
|
||||
testTask.group "verification"
|
||||
testTask.group = "verification"
|
||||
testTask.useJUnitPlatform()
|
||||
testTask.filter {
|
||||
includeTestsMatching("edu.wpi.first.wpilibj.snippets.${entry.foldername}.*")
|
||||
@@ -236,7 +236,7 @@ model {
|
||||
testTask.systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
|
||||
testTask.testLogging {
|
||||
events "failed"
|
||||
exceptionFormat "full"
|
||||
exceptionFormat = "full"
|
||||
}
|
||||
testTask.systemProperty 'java.library.path', filePath
|
||||
|
||||
|
||||
@@ -76,24 +76,24 @@ publishing {
|
||||
artifact javaExamplesZip
|
||||
|
||||
artifactId = baseExamplesArtifactId
|
||||
groupId artifactGroupId
|
||||
version wpilibVersioning.version.get()
|
||||
groupId = artifactGroupId
|
||||
version = wpilibVersioning.version.get()
|
||||
}
|
||||
|
||||
templates(MavenPublication) {
|
||||
artifact javaTemplatesZip
|
||||
|
||||
artifactId = baseTemplatesArtifactId
|
||||
groupId artifactGroupId
|
||||
version wpilibVersioning.version.get()
|
||||
groupId = artifactGroupId
|
||||
version = wpilibVersioning.version.get()
|
||||
}
|
||||
|
||||
commands(MavenPublication) {
|
||||
artifact javaCommandsZip
|
||||
|
||||
artifactId = baseCommandsArtifactId
|
||||
groupId artifactGroupId
|
||||
version wpilibVersioning.version.get()
|
||||
groupId = artifactGroupId
|
||||
version = wpilibVersioning.version.get()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user