Skip to content

Commit 0cd5506

Browse files
committed
Always use "elasticsearch" as Gradle project name (#65709)
1 parent 4afc78e commit 0cd5506

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

settings.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import org.elasticsearch.gradle.Version
22

3-
String dirName = rootProject.projectDir.name
4-
rootProject.name = dirName
3+
rootProject.name = "elasticsearch"
54

65
List projects = [
76
'build-tools',
@@ -88,7 +87,7 @@ include projects.toArray(new String[0])
8887
project(':build-tools').projectDir = new File(rootProject.projectDir, 'buildSrc')
8988

9089
// look for extra plugins for elasticsearch
91-
File extraProjects = new File(rootProject.projectDir.parentFile, "${dirName}-extra")
90+
File extraProjects = new File(rootProject.projectDir.parentFile, "${rootProject.projectDir.name}-extra")
9291
if (extraProjects.exists()) {
9392
for (File extraProjectDir : extraProjects.listFiles()) {
9493
addSubProjects('', extraProjectDir)

0 commit comments

Comments
 (0)