From f091a59e673b494634fcadd853e89a57a363351e Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Fri, 1 Mar 2024 12:00:19 +0200 Subject: [PATCH] Change messages log level in init script --- ...radle-actions.inject-develocity.init.gradle | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle b/sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle index 453b72e..e503c64 100644 --- a/sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle +++ b/sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle @@ -29,7 +29,7 @@ initscript { if (gePluginVersion || ccudPluginVersion && atLeastGradle4) { pluginRepositoryUrl = pluginRepositoryUrl ?: 'https://plugins.gradle.org/m2' - logger.quiet("Develocity plugins resolution: $pluginRepositoryUrl") + logger.lifecycle("Develocity plugins resolution: $pluginRepositoryUrl") repositories { maven { url pluginRepositoryUrl } @@ -104,10 +104,10 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { it.moduleVersion.with { group == "com.gradle" && (name == "build-scan-plugin" || name == "gradle-enterprise-gradle-plugin") } } if (!scanPluginComponent) { - logger.quiet("Applying $BUILD_SCAN_PLUGIN_CLASS via init script") + logger.lifecycle("Applying $BUILD_SCAN_PLUGIN_CLASS via init script") applyPluginExternally(pluginManager, BUILD_SCAN_PLUGIN_CLASS) if (geUrl) { - logger.quiet("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") + logger.lifecycle("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") buildScan.server = geUrl buildScan.allowUntrustedServer = geAllowUntrustedServer } @@ -119,7 +119,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { if (geUrl && geEnforceUrl) { pluginManager.withPlugin(BUILD_SCAN_PLUGIN_ID) { afterEvaluate { - logger.quiet("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") + logger.lifecycle("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") buildScan.server = geUrl buildScan.allowUntrustedServer = geAllowUntrustedServer } @@ -137,7 +137,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { it.moduleVersion.with { group == "com.gradle" && name == "common-custom-user-data-gradle-plugin" } } if (!ccudPluginComponent) { - logger.quiet("Applying $CCUD_PLUGIN_CLASS via init script") + logger.lifecycle("Applying $CCUD_PLUGIN_CLASS via init script") pluginManager.apply(initscript.classLoader.loadClass(CCUD_PLUGIN_CLASS)) } } @@ -147,11 +147,11 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { gradle.settingsEvaluated { settings -> if (gePluginVersion) { if (!settings.pluginManager.hasPlugin(DEVELOCITY_PLUGIN_ID)) { - logger.quiet("Applying $DEVELOCITY_PLUGIN_CLASS via init script") + logger.lifecycle("Applying $DEVELOCITY_PLUGIN_CLASS via init script") applyPluginExternally(settings.pluginManager, DEVELOCITY_PLUGIN_CLASS) eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext -> if (geUrl) { - logger.quiet("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") + logger.lifecycle("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") ext.server = geUrl ext.allowUntrustedServer = geAllowUntrustedServer } @@ -163,7 +163,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { if (geUrl && geEnforceUrl) { eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext -> - logger.quiet("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") + logger.lifecycle("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer") ext.server = geUrl ext.allowUntrustedServer = geAllowUntrustedServer } @@ -179,7 +179,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { if (ccudPluginVersion) { if (!settings.pluginManager.hasPlugin(CCUD_PLUGIN_ID)) { - logger.quiet("Applying $CCUD_PLUGIN_CLASS via init script") + logger.lifecycle("Applying $CCUD_PLUGIN_CLASS via init script") settings.pluginManager.apply(initscript.classLoader.loadClass(CCUD_PLUGIN_CLASS)) } }