Skip to content

Commit b1a4d30

Browse files
committed
Avoid usage of deprecated Gradle API in spring-oxm.gradle
This upgrade avoids the warning about the following on Gradle 7.1+. - The SourceDirectorySet.outputDir property has been deprecated. Closes spring-projectsgh-26870
1 parent 8c14251 commit b1a4d30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-oxm/spring-oxm.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies {
1616
xjc {
1717
xjcVersion = '2.2'
1818
}
19+
1920
sourceSets {
2021
test {
2122
xjcTargetPackage = 'org.springframework.oxm.jaxb.test'
@@ -55,7 +56,7 @@ if ((JavaVersion.current() == JavaVersion.VERSION_1_8) && !project.hasProperty("
5556
classpath: configurations.jibx.asPath)
5657

5758
jibx(verbose: false, load: true, binding: bindingXml) {
58-
classpathset(dir: sourceSets.test.java.outputDir) {
59+
classpathset(dir: sourceSets.test.java.classesDirectory.get().getAsFile()) {
5960
include(name: "**/jibx/**/*")
6061
}
6162
}

0 commit comments

Comments
 (0)