浏览代码

Fix mistakenly inverted conditional (#90532)

A build is considered included in a composite if it has a parent. So
this should check of the parent is NOT null.
Mark Vieira 3 年之前
父节点
当前提交
bd50658366
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build-tools/src/main/java/org/elasticsearch/gradle/util/GradleUtils.java

+ 1 - 1
build-tools/src/main/java/org/elasticsearch/gradle/util/GradleUtils.java

@@ -228,6 +228,6 @@ public abstract class GradleUtils {
      * @return true if the project is an included build
      * @return true if the project is an included build
      */
      */
     public static boolean isIncludedBuild(Project project) {
     public static boolean isIncludedBuild(Project project) {
-        return project.getGradle().getParent() == null;
+        return project.getGradle().getParent() != null;
     }
     }
 }
 }