All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.toolkit.build_logic.errorprone.gradle Maven / Gradle / Ivy

The newest version!
allprojects {
    pluginManager.withPlugin('java') {
        apply plugin: 'net.ltgt.errorprone'
    }

    pluginManager.withPlugin('net.ltgt.errorprone') {
        String errorproneVersion = '2.36.0'

        dependencies {
            errorprone "com.google.errorprone:error_prone_core:$errorproneVersion"
            errorprone 'jp.skypencil.errorprone.slf4j:errorprone-slf4j:0.1.28'

            compileOnlyAll "com.google.errorprone:error_prone_annotations:$errorproneVersion"
        }

        configurations.errorprone.extendsFrom(configurations.mockito)
        dependencies {
            errorprone 'org.mockito:mockito-errorprone'
        }

        tasks.withType(JavaCompile).configureEach {
            options.errorprone {
                disableWarningsInGeneratedCode = true
                disable(
                    'JavaxInjectOnAbstractMethod', // false positives with Gradle
                    'InjectOnConstructorOfAbstractClass', // false positives with Gradle
                    'MissingSummary', // we don't write JavaDocs everywhere
                    'DoNotCallSuggester', // we don't need this check
                    'UnusedVariable', // buggy and annoying
                    'SameNameButDifferent', // false positives with lombok.val
                    'ParameterName', // false positives with Lombok
                    'MissingOverride', // false positives with Lombok
                    'BugPatternNaming', // too strict rule
                    'StringCaseLocaleUsage', // too strict rule
                )
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy