From 38e58c7e311299618a8821345110b97667ecc19d Mon Sep 17 00:00:00 2001 From: Dan Fox Date: Wed, 13 Jul 2016 21:53:35 +0100 Subject: [PATCH] Drop several log lines from info to debug --- .../baseline/plugins/BaselineCheckstyle.groovy | 6 +++--- .../palantir/baseline/plugins/BaselineFindBugs.groovy | 6 +++--- .../com/palantir/baseline/plugins/BaselineIdea.groovy | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy index 451ccabec..5e2df8d0d 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineCheckstyle.groovy @@ -43,7 +43,7 @@ class BaselineCheckstyle extends AbstractBaselinePlugin { } def configureCheckstyle() { - project.logger.info("Baseline: Configuring Checkstyle tasks") + project.logger.debug("Baseline: Configuring Checkstyle tasks") def configProps = project.checkstyle.configProperties // Required to enable checkstyle suppressions @@ -78,10 +78,10 @@ class BaselineCheckstyle extends AbstractBaselinePlugin { def configureCheckstyleForEclipse() { def eclipse = project.plugins.findPlugin "eclipse" if (eclipse == null) { - project.logger.info "Baseline: Skipping configuring Eclipse for Checkstyle (eclipse not applied)" + project.logger.debug "Baseline: Skipping configuring Eclipse for Checkstyle (eclipse not applied)" return } - project.logger.info "Baseline: Configuring Eclipse Checkstyle" + project.logger.debug "Baseline: Configuring Eclipse Checkstyle" project.eclipse.project { natures "net.sf.eclipsecs.core.CheckstyleNature" buildCommand "net.sf.eclipsecs.core.CheckstyleBuilder" diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFindBugs.groovy b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFindBugs.groovy index 2991434ff..3e235332d 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFindBugs.groovy +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFindBugs.groovy @@ -58,7 +58,7 @@ class BaselineFindBugs extends AbstractBaselinePlugin { } def configureFindBugs() { - project.logger.info("Baseline: Configuring FindBugs tasks") + project.logger.debug("Baseline: Configuring FindBugs tasks") // Configure findbugs project.findbugs { @@ -75,10 +75,10 @@ class BaselineFindBugs extends AbstractBaselinePlugin { // Configure checkstyle settings for Eclipse def configureFindBugsForEclipse() { if (!project.plugins.findPlugin(EclipsePlugin)) { - project.logger.info "Baseline: Skipping configuring Eclipse for FindBugs (eclipse not applied)" + project.logger.debug "Baseline: Skipping configuring Eclipse for FindBugs (eclipse not applied)" return } - project.logger.info "Baseline: Configuring Eclipse FindBugs" + project.logger.debug "Baseline: Configuring Eclipse FindBugs" project.eclipse.project { natures "edu.umd.cs.findbugs.plugin.eclipse.findbugsNature" buildCommand "edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder" diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineIdea.groovy b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineIdea.groovy index a00608e7a..2e86b7094 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineIdea.groovy +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineIdea.groovy @@ -98,11 +98,11 @@ class BaselineIdea extends AbstractBaselinePlugin { private void addCheckstyle(node) { def checkstyle = project.plugins.findPlugin(BaselineCheckstyle) if (checkstyle == null) { - project.logger.info "Baseline: Skipping IDEA checkstyle configuration since baseline-checkstyle not applied" + project.logger.debug "Baseline: Skipping IDEA checkstyle configuration since baseline-checkstyle not applied" return } - project.logger.info "Baseline: Configuring Checkstyle for Idea" + project.logger.debug "Baseline: Configuring Checkstyle for Idea" def checkstyleFile = "LOCAL_FILE:\$PRJ_DIR\$.baseline/checkstyle/checkstyle.xml" node.append(new XmlParser().parseText(""" @@ -126,7 +126,7 @@ class BaselineIdea extends AbstractBaselinePlugin { */ private void addGit(node) { if (!project.file(".git").isDirectory()) { - project.logger.info "Baseline: Skipping IDEA Git configuration since .git directory does not exist." + project.logger.debug "Baseline: Skipping IDEA Git configuration since .git directory does not exist." return } @@ -187,7 +187,7 @@ class BaselineIdea extends AbstractBaselinePlugin { if (compileJavaTask) { def javaVersion = compileJavaTask.sourceCompatibility def jdkVersion = 'JDK_' + javaVersion.replaceAll('\\.', '_') - project.logger.info("BaselineIdea: Configuring IDEA Module for Java version: " + javaVersion) + project.logger.debug("BaselineIdea: Configuring IDEA Module for Java version: " + javaVersion) if (ideaModel.project != null) { ideaModel.project.languageLevel = javaVersion @@ -198,7 +198,7 @@ class BaselineIdea extends AbstractBaselinePlugin { it.asNode().component.find { it.@name == 'NewModuleRootManager' }.@LANGUAGE_LEVEL = jdkVersion } } else { - project.logger.info("BaselineIdea: No Java version found in sourceCompatibility property.") + project.logger.debug("BaselineIdea: No Java version found in sourceCompatibility property.") } } }