Remove unused build script extra property (#76324)

This commit is contained in:
Mark Vieira 2021-08-10 15:02:53 -07:00 committed by GitHub
parent 3d0b8efb78
commit 3fdb02c0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -25,7 +25,7 @@ import org.gradle.plugins.ide.eclipse.model.ProjectDependency
import org.elasticsearch.gradle.internal.InternalPluginBuildPlugin
import org.elasticsearch.gradle.internal.ResolveAllDependencies
import java.nio.file.Files
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
plugins {
id 'lifecycle-base'
@ -84,13 +84,6 @@ tasks.register("updateCIBwcVersions") {
}
}
//TODO port buildMetaData to use provider api
String buildMetadataValue = providers.environmentVariable('BUILD_METADATA').orElse("").forUseAtConfigurationTime().get()
Map<String, String> buildMetadataMap = buildMetadataValue.tokenize(';').collectEntries {
def (String key, String value) = it.split('=')
return [key, value]
}
tasks.register("verifyVersions") {
doLast {
if (gradle.startParameter.isOffline()) {
@ -200,8 +193,6 @@ allprojects {
providers.systemProperty("eclipse.application").forUseAtConfigurationTime().isPresent() || // Detects gradle launched from the Eclipse compiler server
gradle.startParameter.taskNames.contains('eclipse') || // Detects gradle launched from the command line to do eclipse stuff
gradle.startParameter.taskNames.contains('cleanEclipse')
buildMetadata = buildMetadataMap
}
ext.bwc_tests_enabled = bwc_tests_enabled