Skip to content

Commit

Permalink
Address the build's own deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Mar 28, 2024
1 parent 23d03d9 commit 1f61eab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions spring-restdocs-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -70,7 +70,7 @@ dependencies {

jar {
dependsOn jmustacheRepackJar
from(zipTree(jmustacheRepackJar.archivePath)) {
from(zipTree(jmustacheRepackJar.archiveFile.get())) {
include "org/springframework/restdocs/**"
}
}
Expand Down

0 comments on commit 1f61eab

Please sign in to comment.