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 gh-26870
This commit is contained in:
Sam Brannen
2021-09-14 11:35:12 +02:00
parent 8c14251a1a
commit b1a4d3033b

View File

@@ -16,6 +16,7 @@ dependencies {
xjc {
xjcVersion = '2.2'
}
sourceSets {
test {
xjcTargetPackage = 'org.springframework.oxm.jaxb.test'
@@ -55,7 +56,7 @@ if ((JavaVersion.current() == JavaVersion.VERSION_1_8) && !project.hasProperty("
classpath: configurations.jibx.asPath)
jibx(verbose: false, load: true, binding: bindingXml) {
classpathset(dir: sourceSets.test.java.outputDir) {
classpathset(dir: sourceSets.test.java.classesDirectory.get().getAsFile()) {
include(name: "**/jibx/**/*")
}
}