Replace deprecated Gradle 7.2 properties (#417)

This commit is contained in:
Mike Drob 2021-10-29 09:59:47 -05:00 committed by GitHub
parent 53b40e0fb7
commit 23256a30fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ allprojects {
from('src/test') {
exclude '**/*.java'
}
into sourceSets.test.java.outputDir
into sourceSets.test.java.classesDirectory
}
processTestResources.dependsOn copyTestResources

View File

@ -90,7 +90,7 @@ allprojects {
tasks.withType(Test) {
ext {
testOutputsDir = file("${reports.junitXml.destination}/outputs")
testOutputsDir = file("${reports.junitXml.outputLocation}/outputs")
}
// LUCENE-9660: Make it possible to always rerun tests, even if they're incrementally up-to-date.
@ -148,7 +148,7 @@ allprojects {
}
// Disable HTML report generation. The reports are big and slow to generate.
reports.html.enabled = false
reports.html.required = false
// Set up logging.
testLogging {

View File

@ -52,7 +52,7 @@ allprojects {
enabled = !srcDirs.isEmpty()
classpath = rootProject.configurations.ecjDeps
main = "org.eclipse.jdt.internal.compiler.batch.Main"
mainClass = "org.eclipse.jdt.internal.compiler.batch.Main"
// Don't emit any .class files.
// Hack around "-d none" still emitting package-info.class

View File

@ -50,7 +50,7 @@ sourceSets {
task run(type: JavaExec) {
description "Run a perf test (optional: -PtaskAlg=conf/your-algorithm-file -PmaxHeapSize=1G)"
main 'org.apache.lucene.benchmark.byTask.Benchmark'
mainClass = 'org.apache.lucene.benchmark.byTask.Benchmark'
classpath sourceSets.main.runtimeClasspath
// allow these to be specified on the CLI via -PtaskAlg= for example