move errorprone config to its own gitlab CI job
This commit is contained in:
parent
d3cb775101
commit
3c341b7e4b
@ -45,6 +45,13 @@ test:
|
||||
- ./gradlew test || export EXITVALUE=1
|
||||
- exit $EXITVALUE
|
||||
|
||||
errorprone:
|
||||
stage: test
|
||||
script:
|
||||
- cat config/errorprone.gradle >> app/build.gradle
|
||||
- ./gradlew assembleDebug
|
||||
allow_failure: true
|
||||
|
||||
connected10:
|
||||
stage: test
|
||||
<<: *test-template
|
||||
|
@ -375,38 +375,4 @@ android.applicationVariants.all { variant ->
|
||||
exclude '**/BuildConfig.java'
|
||||
exclude '**/R.java'
|
||||
}
|
||||
}
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "net.ltgt.errorprone"
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs += [
|
||||
'-Xep:CatchFail:OFF',
|
||||
'-Xep:ClassCanBeStatic:OFF',
|
||||
'-Xep:DateFormatConstant:OFF',
|
||||
'-Xep:DefaultCharset:OFF',
|
||||
'-Xep:FormatString:OFF',
|
||||
'-Xep:JavaLangClash:OFF',
|
||||
'-Xep:MissingCasesInEnumSwitch:OFF',
|
||||
'-Xep:MissingOverride:OFF',
|
||||
'-Xep:NonAtomicVolatileUpdate:OFF',
|
||||
'-Xep:OperatorPrecedence:OFF',
|
||||
'-Xep:StringSplitter:OFF',
|
||||
'-Xep:UnsynchronizedOverridesSynchronized:OFF',
|
||||
]
|
||||
}
|
||||
|
||||
configurations.errorprone {
|
||||
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.2.0'
|
||||
}
|
||||
}
|
34
config/errorprone.gradle
Normal file
34
config/errorprone.gradle
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "net.ltgt.errorprone"
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs += [
|
||||
'-Xep:CatchFail:OFF',
|
||||
'-Xep:ClassCanBeStatic:OFF',
|
||||
'-Xep:DateFormatConstant:OFF',
|
||||
'-Xep:DefaultCharset:OFF',
|
||||
'-Xep:FormatString:OFF',
|
||||
'-Xep:JavaLangClash:OFF',
|
||||
'-Xep:MissingCasesInEnumSwitch:OFF',
|
||||
'-Xep:MissingOverride:OFF',
|
||||
'-Xep:NonAtomicVolatileUpdate:OFF',
|
||||
'-Xep:OperatorPrecedence:OFF',
|
||||
'-Xep:StringSplitter:OFF',
|
||||
'-Xep:UnsynchronizedOverridesSynchronized:OFF',
|
||||
]
|
||||
}
|
||||
|
||||
configurations.errorprone {
|
||||
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.2.0'
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user