Loading sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle +10 −3 Changes for sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle: 10 added lines, 3 removed lines. Original line number Diff line number Diff line /* * Initscript for injection of Develocity into Gradle builds. * Version: v0.4.0 */ import org.gradle.util.GradleVersion // note that there is no mechanism to share code between the initscript{} block and the main script, so some logic is duplicated Loading @@ -9,8 +14,9 @@ initscript { return } def ENV_VAR_PREFIX = '' def getInputParam = { String name -> def envVarName = name.toUpperCase().replace('.', '_').replace('-', '_') def envVarName = ENV_VAR_PREFIX + name.toUpperCase().replace('.', '_').replace('-', '_') return System.getProperty(name) ?: System.getenv(envVarName) } Loading Loading @@ -93,8 +99,9 @@ if (!isTopLevelBuild) { return } def ENV_VAR_PREFIX = '' def getInputParam = { String name -> def envVarName = name.toUpperCase().replace('.', '_').replace('-', '_') def envVarName = ENV_VAR_PREFIX + name.toUpperCase().replace('.', '_').replace('-', '_') return System.getProperty(name) ?: System.getenv(envVarName) } Loading Loading @@ -139,7 +146,7 @@ if (ccudPluginVersion && isNotAtLeast(ccudPluginVersion, '1.7')) { return } // register buildScanPublished listener and optionally apply the Develocity plugin // Conditionally apply and configure the Develocity plugin if (GradleVersion.current() < GradleVersion.version('6.0')) { rootProject { buildscript.configurations.getByName("classpath").incoming.afterResolve { ResolvableDependencies incoming -> Loading Loading
sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle +10 −3 Changes for sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle: 10 added lines, 3 removed lines. Original line number Diff line number Diff line /* * Initscript for injection of Develocity into Gradle builds. * Version: v0.4.0 */ import org.gradle.util.GradleVersion // note that there is no mechanism to share code between the initscript{} block and the main script, so some logic is duplicated Loading @@ -9,8 +14,9 @@ initscript { return } def ENV_VAR_PREFIX = '' def getInputParam = { String name -> def envVarName = name.toUpperCase().replace('.', '_').replace('-', '_') def envVarName = ENV_VAR_PREFIX + name.toUpperCase().replace('.', '_').replace('-', '_') return System.getProperty(name) ?: System.getenv(envVarName) } Loading Loading @@ -93,8 +99,9 @@ if (!isTopLevelBuild) { return } def ENV_VAR_PREFIX = '' def getInputParam = { String name -> def envVarName = name.toUpperCase().replace('.', '_').replace('-', '_') def envVarName = ENV_VAR_PREFIX + name.toUpperCase().replace('.', '_').replace('-', '_') return System.getProperty(name) ?: System.getenv(envVarName) } Loading Loading @@ -139,7 +146,7 @@ if (ccudPluginVersion && isNotAtLeast(ccudPluginVersion, '1.7')) { return } // register buildScanPublished listener and optionally apply the Develocity plugin // Conditionally apply and configure the Develocity plugin if (GradleVersion.current() < GradleVersion.version('6.0')) { rootProject { buildscript.configurations.getByName("classpath").incoming.afterResolve { ResolvableDependencies incoming -> Loading