diff --git a/gradle-jdks/build.gradle b/gradle-jdks/build.gradle index ec104262..8db72e5b 100644 --- a/gradle-jdks/build.gradle +++ b/gradle-jdks/build.gradle @@ -40,6 +40,7 @@ dependencies { testImplementation 'org.assertj:assertj-core' testImplementation 'org.mockito:mockito-core' testImplementation 'org.mockito:mockito-junit-jupiter' + implementation 'com.palantir.safe-logging:logger' } gradlePlugin { diff --git a/gradle-jdks/src/main/java/com/palantir/gradle/jdks/JdksPlugin.java b/gradle-jdks/src/main/java/com/palantir/gradle/jdks/JdksPlugin.java index 3564fac0..b767f51a 100644 --- a/gradle-jdks/src/main/java/com/palantir/gradle/jdks/JdksPlugin.java +++ b/gradle-jdks/src/main/java/com/palantir/gradle/jdks/JdksPlugin.java @@ -17,16 +17,16 @@ package com.palantir.gradle.jdks; import com.palantir.gradle.jdks.enablement.GradleJdksEnablement; +import com.palantir.logsafe.logger.SafeLogger; +import com.palantir.logsafe.logger.SafeLoggerFactory; import java.io.File; import java.util.Arrays; import org.gradle.api.Plugin; import org.gradle.api.Project; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; public final class JdksPlugin implements Plugin { - private static final Logger log = LoggerFactory.getLogger(JdksPlugin.class); + private static final SafeLogger log = SafeLoggerFactory.get(JdksPlugin.class); @Override public void apply(Project rootProject) {