| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| apply plugin: 'com.palantir.baseline-config' |
|
|
| allprojects { |
| apply plugin: 'com.palantir.baseline-idea' |
| } |
|
|
| subprojects { |
| if (it.name == 'iceberg-bom') { |
| |
| return |
| } |
|
|
| |
| |
| |
| |
|
|
| |
| |
| apply plugin: 'org.inferred.processors' |
| if (!project.hasProperty('quick')) { |
| apply plugin: 'com.palantir.baseline-checkstyle' |
| apply plugin: 'com.palantir.baseline-error-prone' |
| } |
| apply plugin: 'com.palantir.baseline-class-uniqueness' |
| apply plugin: 'com.palantir.baseline-reproducibility' |
| apply plugin: 'com.palantir.baseline-exact-dependencies' |
| apply plugin: 'com.palantir.baseline-release-compatibility' |
| apply plugin: 'com.diffplug.spotless' |
|
|
| pluginManager.withPlugin('com.palantir.baseline-checkstyle') { |
| checkstyle { |
| |
| |
| |
| toolVersion '9.3' |
| } |
| } |
|
|
| pluginManager.withPlugin('com.diffplug.spotless') { |
| spotless { |
| java { |
| target 'src/main/java/**/*.java', 'src/test/java/**/*.java', 'src/jmh/java/**/*.java', 'src/integration/java/**/*.java' |
| |
| googleJavaFormat("1.7") |
| removeUnusedImports() |
| licenseHeaderFile "$rootDir/.baseline/copyright/copyright-header-java.txt" |
| } |
| } |
| } |
|
|
| pluginManager.withPlugin('com.palantir.baseline-error-prone') { |
| tasks.withType(JavaCompile).configureEach { |
| options.errorprone.errorproneArgs.addAll ( |
| |
| '-XepExcludedPaths:.*/(test|generated-src|generated)/.*', |
| |
| '-Xep:ConsistentLoggerName:OFF', |
| '-Xep:FinalClass:OFF', |
| '-Xep:PreferSafeLoggingPreconditions:OFF', |
| '-Xep:PreferSafeLoggableExceptions:OFF', |
| '-Xep:Slf4jLogsafeArgs:OFF', |
| '-Xep:RawTypes:OFF', |
| |
| '-Xep:LoggerEnclosingClass:ERROR', |
| '-Xep:PreferStaticLoggers:ERROR', |
| '-Xep:Slf4jThrowable:ERROR', |
| |
| '-Xep:EqualsGetClass:OFF', |
| |
| '-Xep:LambdaMethodReference:ERROR', |
| |
| '-Xep:MissingCasesInEnumSwitch:OFF', |
| |
| '-Xep:StrictUnusedVariable:OFF', |
| '-Xep:TypeParameterShadowing:OFF', |
| '-Xep:TypeParameterUnusedInFormals:OFF', |
| '-Xep:DangerousThreadPoolExecutorUsage:OFF', |
| |
| '-Xep:ObjectsHashCodeUnnecessaryVarargs:ERROR', |
| '-Xep:PreferSafeLogger:OFF', |
| |
| '-Xep:StringSplitter:ERROR', |
| |
| '-Xep:MissingOverride:ERROR', |
| '-Xep:IntLongMath:ERROR', |
| '-Xep:MissingSummary:ERROR', |
| '-Xep:AnnotateFormatMethod:ERROR', |
| '-Xep:CollectionUndefinedEquality:ERROR', |
| ) |
| } |
| } |
|
|
| pluginManager.withPlugin('com.github.alisiikh.scalastyle') { |
| scalastyle { |
| config = file("${rootDir}/project/scalastyle_config.xml") |
| inputEncoding = 'UTF-8' |
| outputEncoding = 'UTF-8' |
| failOnWarning = false |
| verbose = false |
| quiet = false |
| } |
| } |
| } |
|
|