diff --git a/build.gradle b/build.gradle index f38ada6d0..7653905dc 100644 --- a/build.gradle +++ b/build.gradle @@ -74,6 +74,9 @@ ext.projectRootDir = "${rootDir}" task deploy { group = 'deployment' description = 'Deploys all services to App Engine.' + if (rootProject.findProperty("environment") != 'alpha') { + throw new GradleException("Can only deploy to alpha."); + } } task stage {