Always use "elasticsearch" as Gradle project name (#65709)

This commit is contained in:
Mark Vieira 2020-12-02 09:27:24 -08:00
parent dcff07f717
commit 49d062efb0
1 changed files with 2 additions and 3 deletions

View File

@ -2,8 +2,7 @@ plugins {
id "com.gradle.enterprise" version "3.5"
}
String dirName = rootProject.projectDir.name
rootProject.name = dirName
rootProject.name = "elasticsearch"
List projects = [
'build-tools',
@ -133,7 +132,7 @@ project(":test:external-modules").children.each { testProject ->
}
// look for extra plugins for elasticsearch
File extraProjects = new File(rootProject.projectDir.parentFile, "${dirName}-extra")
File extraProjects = new File(rootProject.projectDir.parentFile, "${rootProject.projectDir.name}-extra")
if (extraProjects.exists()) {
for (File extraProjectDir : extraProjects.listFiles()) {
addSubProjects('', extraProjectDir)