Skip to content

Apache Lucene open-source search software

Move intiial environment checks to buildSrc so that they happen before any other script has a chance to evaluate.

Dawid Weiss363f2e365477
diff --git a/build.gradle b/build.gradle
index 9d6797fc8d3..ed230e1a491 100644
--- a/build.gradle
+++ b/build.gradle
@@ -11,9 +11,6 @@ allprojects {
version = "9.0.0-SNAPSHOT"
}
-// Make sure the build environment is consistent.
-apply from: file('gradle/validation/check-environment.gradle')
-
// Include smaller chunks configuring dedicated build areas.
// Some of these intersect or add additional functionality.
// The order of inclusion of these files shouldn't matter (but may
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
new file mode 100644
index 00000000000..fa0f802749e
--- /dev/null
+++ b/buildSrc/build.gradle
@@ -0,0 +1,3 @@
+
+// Make sure the build environment is consistent.
+apply from: file('../gradle/validation/check-environment.gradle')