Address the build's own deprecation warnings

This commit is contained in:
Andy Wilkinson
2024-03-28 15:31:26 +00:00
parent 23d03d9069
commit 1f61eab977
2 changed files with 6 additions and 4 deletions

View File

@@ -44,8 +44,10 @@ subprojects { subproject ->
subproject.apply plugin: "io.spring.javaformat"
subproject.apply plugin: "checkstyle"
sourceCompatibility = 17
targetCompatibility = 17
java {
sourceCompatibility = 17
targetCompatibility = 17
}
configurations {
internal {

View File

@@ -22,7 +22,7 @@ task jmustacheRepackJar(type: Jar) { repackJar ->
project.ant {
taskdef name: "jarjar", classname: "com.tonicsystems.jarjar.JarJarTask",
classpath: configurations.jarjar.asPath
jarjar(destfile: repackJar.archivePath) {
jarjar(destfile: repackJar.archiveFile.get()) {
configurations.jmustache.each { originalJar ->
zipfileset(src: originalJar, includes: "**/*.class")
}
@@ -70,7 +70,7 @@ dependencies {
jar {
dependsOn jmustacheRepackJar
from(zipTree(jmustacheRepackJar.archivePath)) {
from(zipTree(jmustacheRepackJar.archiveFile.get())) {
include "org/springframework/restdocs/**"
}
}