Skip to content

Commit 1f61eab

Browse files
committed
Address the build's own deprecation warnings
1 parent 23d03d9 commit 1f61eab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ subprojects { subproject ->
4444
subproject.apply plugin: "io.spring.javaformat"
4545
subproject.apply plugin: "checkstyle"
4646

47-
sourceCompatibility = 17
48-
targetCompatibility = 17
47+
java {
48+
sourceCompatibility = 17
49+
targetCompatibility = 17
50+
}
4951

5052
configurations {
5153
internal {

spring-restdocs-core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ task jmustacheRepackJar(type: Jar) { repackJar ->
2222
project.ant {
2323
taskdef name: "jarjar", classname: "com.tonicsystems.jarjar.JarJarTask",
2424
classpath: configurations.jarjar.asPath
25-
jarjar(destfile: repackJar.archivePath) {
25+
jarjar(destfile: repackJar.archiveFile.get()) {
2626
configurations.jmustache.each { originalJar ->
2727
zipfileset(src: originalJar, includes: "**/*.class")
2828
}
@@ -70,7 +70,7 @@ dependencies {
7070

7171
jar {
7272
dependsOn jmustacheRepackJar
73-
from(zipTree(jmustacheRepackJar.archivePath)) {
73+
from(zipTree(jmustacheRepackJar.archiveFile.get())) {
7474
include "org/springframework/restdocs/**"
7575
}
7676
}

0 commit comments

Comments
 (0)