Skip to content

Commit c7b8905

Browse files
Excavator: Enable gradle-guide plugin (#1361)
1 parent b9769bf commit c7b8905

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildscript {
1212
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.19.0'
1313
classpath 'com.palantir.gradle.failure-reports:gradle-failure-reports:1.14.0'
1414
classpath 'com.palantir.gradle.gitversion:gradle-git-version:4.0.0'
15+
classpath 'com.palantir.gradle.guide:gradle-guide:1.8.0'
1516
classpath 'com.palantir.gradle.idea-configuration:gradle-idea-configuration:0.5.0'
1617
classpath 'com.palantir.gradle.jdks:gradle-jdks:0.69.0'
1718
classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.21.0'
@@ -26,6 +27,7 @@ buildscript {
2627
apply plugin: 'com.palantir.external-publish'
2728
apply plugin: 'com.palantir.failure-reports'
2829
apply plugin: 'com.palantir.git-version'
30+
apply plugin: 'com.palantir.gradle-guide'
2931
apply plugin: 'com.palantir.jdks'
3032
apply plugin: 'com.palantir.jdks.latest'
3133
apply plugin: 'com.palantir.baseline'

gradle-palantir-java-format/src/main/java/com/palantir/javaformat/gradle/PalantirJavaFormatProviderPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public final class PalantirJavaFormatProviderPlugin implements Plugin<Project> {
2525

2626
static final String CONFIGURATION_NAME = "palantirJavaFormat";
2727

28+
@SuppressWarnings({"for-rollout:GradleTypesAsFields", "for-rollout:NonAbstractGradleType"})
2829
@Override
2930
public void apply(Project rootProject) {
3031
Preconditions.checkState(
@@ -33,6 +34,7 @@ public void apply(Project rootProject) {
3334

3435
rootProject.getPluginManager().apply(NativeImageFormatProviderPlugin.class);
3536

37+
@SuppressWarnings("for-rollout:ConfigurationAvoidanceRegistration")
3638
Configuration configuration = rootProject.getConfigurations().create(CONFIGURATION_NAME, conf -> {
3739
conf.setDescription("Internal configuration for resolving the palantir-java-format implementation");
3840
conf.setVisible(false);

0 commit comments

Comments
 (0)