mirror of
https://github.com/gradle/actions.git
synced 2025-08-24 19:01:27 +08:00
Merge pull request #60 from gradle/welandaz/lifecycle-log-level-init-script
Change messages log level in init script
This commit is contained in:
commit
b00d9dd511
@ -29,7 +29,7 @@ initscript {
|
|||||||
|
|
||||||
if (gePluginVersion || ccudPluginVersion && atLeastGradle4) {
|
if (gePluginVersion || ccudPluginVersion && atLeastGradle4) {
|
||||||
pluginRepositoryUrl = pluginRepositoryUrl ?: 'https://plugins.gradle.org/m2'
|
pluginRepositoryUrl = pluginRepositoryUrl ?: 'https://plugins.gradle.org/m2'
|
||||||
logger.quiet("Develocity plugins resolution: $pluginRepositoryUrl")
|
logger.lifecycle("Develocity plugins resolution: $pluginRepositoryUrl")
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven { url pluginRepositoryUrl }
|
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") }
|
it.moduleVersion.with { group == "com.gradle" && (name == "build-scan-plugin" || name == "gradle-enterprise-gradle-plugin") }
|
||||||
}
|
}
|
||||||
if (!scanPluginComponent) {
|
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)
|
applyPluginExternally(pluginManager, BUILD_SCAN_PLUGIN_CLASS)
|
||||||
if (geUrl) {
|
if (geUrl) {
|
||||||
logger.quiet("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
logger.lifecycle("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
||||||
buildScan.server = geUrl
|
buildScan.server = geUrl
|
||||||
buildScan.allowUntrustedServer = geAllowUntrustedServer
|
buildScan.allowUntrustedServer = geAllowUntrustedServer
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
|
|||||||
if (geUrl && geEnforceUrl) {
|
if (geUrl && geEnforceUrl) {
|
||||||
pluginManager.withPlugin(BUILD_SCAN_PLUGIN_ID) {
|
pluginManager.withPlugin(BUILD_SCAN_PLUGIN_ID) {
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
logger.quiet("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
logger.lifecycle("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
||||||
buildScan.server = geUrl
|
buildScan.server = geUrl
|
||||||
buildScan.allowUntrustedServer = geAllowUntrustedServer
|
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" }
|
it.moduleVersion.with { group == "com.gradle" && name == "common-custom-user-data-gradle-plugin" }
|
||||||
}
|
}
|
||||||
if (!ccudPluginComponent) {
|
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))
|
pluginManager.apply(initscript.classLoader.loadClass(CCUD_PLUGIN_CLASS))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -147,11 +147,11 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
|
|||||||
gradle.settingsEvaluated { settings ->
|
gradle.settingsEvaluated { settings ->
|
||||||
if (gePluginVersion) {
|
if (gePluginVersion) {
|
||||||
if (!settings.pluginManager.hasPlugin(DEVELOCITY_PLUGIN_ID)) {
|
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)
|
applyPluginExternally(settings.pluginManager, DEVELOCITY_PLUGIN_CLASS)
|
||||||
eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext ->
|
eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext ->
|
||||||
if (geUrl) {
|
if (geUrl) {
|
||||||
logger.quiet("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
logger.lifecycle("Connection to Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
||||||
ext.server = geUrl
|
ext.server = geUrl
|
||||||
ext.allowUntrustedServer = geAllowUntrustedServer
|
ext.allowUntrustedServer = geAllowUntrustedServer
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
|
|||||||
|
|
||||||
if (geUrl && geEnforceUrl) {
|
if (geUrl && geEnforceUrl) {
|
||||||
eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext ->
|
eachDevelocityExtension(settings, DEVELOCITY_EXTENSION_CLASS) { ext ->
|
||||||
logger.quiet("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
logger.lifecycle("Enforcing Develocity: $geUrl, allowUntrustedServer: $geAllowUntrustedServer")
|
||||||
ext.server = geUrl
|
ext.server = geUrl
|
||||||
ext.allowUntrustedServer = geAllowUntrustedServer
|
ext.allowUntrustedServer = geAllowUntrustedServer
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
|
|||||||
|
|
||||||
if (ccudPluginVersion) {
|
if (ccudPluginVersion) {
|
||||||
if (!settings.pluginManager.hasPlugin(CCUD_PLUGIN_ID)) {
|
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))
|
settings.pluginManager.apply(initscript.classLoader.loadClass(CCUD_PLUGIN_CLASS))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user