Skip to content

Commit

Permalink
Avoid usage of deprecated Gradle API in spring-oxm.gradle
Browse files Browse the repository at this point in the history
This upgrade avoids the warning about the following on Gradle 7.1+.

- The SourceDirectorySet.outputDir property has been deprecated.

Closes gh-26870
  • Loading branch information
sbrannen committed Sep 14, 2021
1 parent 8c14251 commit b1a4d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spring-oxm/spring-oxm.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
xjc {
xjcVersion = '2.2'
}

sourceSets {
test {
xjcTargetPackage = 'org.springframework.oxm.jaxb.test'
Expand Down Expand Up @@ -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/**/*")
}
}
Expand Down

0 comments on commit b1a4d30

Please sign in to comment.