From e6d42a5a617e2162d2fb65b26b8f2e4b7581e22d Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Mon, 17 Nov 2014 19:00:28 +0100 Subject: [PATCH] gradle: warn when submodules are missing - sth better than 'Configuration with name 'default' not found' --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index a806639b..bcf11205 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,7 @@ +if (!(new File("$rootDir/appcompat/build.gradle").exists())) { + throw new GradleException('Missing git sub modules!\nPLEASE RUN: "git submodule init && git submodule update"') +} + buildscript { repositories { mavenCentral()