Enforce fail on deprecated gradle usage (#59598)

This commit is contained in:
Rene Groeschke 2020-07-16 10:28:27 +02:00 committed by GitHub
parent c78d5e8499
commit 5c4a3ec987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -6,3 +6,6 @@ options.forkOptions.memoryMaximumSize=2g
# Disable duplicate project id detection
# See https://docs.gradle.org/current/userguide/upgrading_version_6.html#duplicate_project_names_may_cause_publication_to_fail
systemProp.org.gradle.dependency.duplicate.project.detection=false
# Enforce the build to fail on deprecated gradle api usage
systemProp.org.gradle.warning.mode=fail

View File

@ -85,6 +85,7 @@ ext.expansions = [
processTestResources {
from(sourceSets.test.resources.srcDirs) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
include '**/*.yml'
inputs.properties(expansions)
MavenFilteringHack.filter(it, expansions)

View File

@ -10,6 +10,7 @@ testFixtures.useFixture ":x-pack:test:smb-fixture"
// add test resources from security, so tests can use example certs
processTestResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(project(xpackModule('core')).sourceSets.test.resources.srcDirs)
from(project(xpackModule('security')).sourceSets.test.resources.srcDirs)
}