Files
James Barr cb51d73da2 Integrate Spotless into build (#415)
* Integrate Spotless in build

* Update CONTRIBUTING.md

* Move improperly placed copyright comments

* Update copyright indent

* Don't format test fixtures

* Run spotlessApply over the whole repo

* Remove checkstyle configs

* Run spotlessCheck on CI
2021-03-24 18:45:35 -07:00

78 lines
2.3 KiB
Groovy

/*
* Copyright (C) 2017. Uber Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
dependencies {
classpath deps.build.gradlePlugins.android
classpath deps.build.gradlePlugins.errorprone
classpath deps.build.gradlePlugins.nullaway
}
}
apply plugin: 'net.ltgt.errorprone'
apply plugin: 'com.android.application'
apply plugin: 'net.ltgt.nullaway'
android {
compileSdkVersion deps.build.compileSdkVersion
buildToolsVersion deps.build.buildToolsVersion
defaultConfig {
minSdkVersion deps.build.minSdkVersion
targetSdkVersion deps.build.targetSdkVersion
applicationId "com.uber.tutorial2"
versionCode 1
versionName "1.0"
}
// No need for lint. This is just a tutorial.
lintOptions {
abortOnError false
quiet true
}
compileOptions {
sourceCompatibility deps.build.javaVersion
targetCompatibility deps.build.javaVersion
}
}
dependencies {
annotationProcessor deps.apt.daggerCompiler
annotationProcessor project(":libraries:rib-compiler-test")
annotationProcessor deps.apt.nullAway
implementation project(":libraries:rib-android")
implementation deps.androidx.appcompat
implementation deps.androidx.percent
implementation deps.external.dagger
implementation deps.external.rxbinding
compileOnly deps.apt.androidApi
compileOnly deps.apt.javax
testImplementation project(":libraries:rib-test")
errorproneJavac deps.build.errorProneJavac
errorprone deps.build.nullAway
errorprone deps.build.errorProne
errorprone deps.build.guavaJre
}
tasks.withType(JavaCompile) {
// Disable error prone checks I don't want.
options.errorprone {
disable("CheckReturnValue")
}
}