浏览代码

Conditionally Add Conventions Plugin

Josh Cummings 1 年之前
父节点
当前提交
092a63d1e0
共有 1 个文件被更改,包括 5 次插入1 次删除
  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 {