Remove unused build script extra property (#76324)
This commit is contained in:
parent
3d0b8efb78
commit
3fdb02c0ca
11
build.gradle
11
build.gradle
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue