Browse Source

Conditionally Add Conventions Plugin

Josh Cummings 1 year ago
parent
commit
092a63d1e0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      settings.gradle

+ 5 - 1
settings.gradle

@@ -6,7 +6,11 @@ pluginManagement {
 
 plugins {
 	id "com.gradle.develocity" version "3.17.4"
-	id "io.spring.ge.conventions" version "0.0.17"
+	id "io.spring.ge.conventions" version "0.0.17" apply false
+}
+
+if (System.getenv("DEVELOCITY_ACCESS_KEY")) {
+	apply plugin: "io.spring.ge.conventions"
 }
 
 dependencyResolutionManagement {