HHH-12674 Avoid using deprecated Gradle methods
This commit is contained in:
parent
da91b1e39d
commit
f52e999690
|
@ -77,9 +77,9 @@ task ciBuild {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
wrapper {
|
||||||
gradleVersion = '4.7'
|
gradleVersion = '4.7'
|
||||||
distributionType = 'ALL'
|
distributionType = Wrapper.DistributionType.ALL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -336,7 +336,7 @@ checkstyleMain.exclude '**/org/hibernate/cfg/*'
|
||||||
|
|
||||||
|
|
||||||
task forbiddenApisSystemOut(type: CheckForbiddenApis, dependsOn: compileJava) {
|
task forbiddenApisSystemOut(type: CheckForbiddenApis, dependsOn: compileJava) {
|
||||||
classesDirs = project.files( project.sourceSets.main.java.outputDir )
|
classesDirs = project.sourceSets.main.output.classesDirs
|
||||||
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
||||||
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
||||||
bundledSignatures += 'jdk-system-out'
|
bundledSignatures += 'jdk-system-out'
|
||||||
|
@ -344,7 +344,7 @@ task forbiddenApisSystemOut(type: CheckForbiddenApis, dependsOn: compileJava) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task forbiddenApisUnsafe(type: CheckForbiddenApis, dependsOn: compileJava) {
|
task forbiddenApisUnsafe(type: CheckForbiddenApis, dependsOn: compileJava) {
|
||||||
classesDirs = project.files( project.sourceSets.main.java.outputDir )
|
classesDirs = project.sourceSets.main.output.classesDirs
|
||||||
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
||||||
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
||||||
bundledSignatures += "jdk-unsafe-${baselineJavaVersion}".toString()
|
bundledSignatures += "jdk-unsafe-${baselineJavaVersion}".toString()
|
||||||
|
@ -357,7 +357,7 @@ task forbiddenApisUnsafe(type: CheckForbiddenApis, dependsOn: compileJava) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task forbiddenApisNonPortable(type: CheckForbiddenApis, dependsOn: compileJava) {
|
task forbiddenApisNonPortable(type: CheckForbiddenApis, dependsOn: compileJava) {
|
||||||
classesDirs = project.files( project.sourceSets.main.java.outputDir )
|
classesDirs = project.sourceSets.main.output.classesDirs
|
||||||
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
classpath = project.sourceSets.main.compileClasspath + project.sourceSets.main.runtimeClasspath
|
||||||
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
targetCompatibility = project.forbiddenAPITargetJDKCompatibility
|
||||||
bundledSignatures += 'jdk-non-portable'
|
bundledSignatures += 'jdk-non-portable'
|
||||||
|
|
Loading…
Reference in New Issue