mirror of
https://github.com/uber/RIBs.git
synced 2026-06-16 12:54:31 +00:00
61 lines
2.0 KiB
Groovy
61 lines
2.0 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.apt
|
|
}
|
|
}
|
|
|
|
apply plugin: "org.jetbrains.kotlin.jvm"
|
|
apply plugin: "org.jetbrains.kotlin.kapt"
|
|
apply plugin: "com.vanniktech.maven.publish"
|
|
|
|
sourceCompatibility = deps.build.javaVersion.toString()
|
|
targetCompatibility = deps.build.javaVersion.toString()
|
|
|
|
dependencies {
|
|
// RIBs themselves don't need to use dagger. But the base library does use dagger
|
|
// in order to invert a dependency. With a bit of work this could be removed.
|
|
kapt deps.apt.daggerCompiler
|
|
kapt deps.apt.androidApi
|
|
|
|
implementation deps.external.guavaAndroid
|
|
implementation deps.external.reactiveStreams
|
|
implementation deps.external.rxrelay2
|
|
implementation deps.external.rxjava2
|
|
implementation deps.kotlin.stdlib
|
|
implementation deps.uber.autodispose
|
|
api deps.uber.autodisposeLifecycle
|
|
implementation deps.apt.javaxInject
|
|
|
|
compileOnly deps.apt.daggerCompiler
|
|
compileOnly deps.androidx.annotations
|
|
compileOnly deps.apt.androidApi
|
|
compileOnly deps.external.checkerQual
|
|
|
|
testImplementation deps.androidx.annotations
|
|
testImplementation deps.apt.androidApi
|
|
testImplementation deps.kotlin.stdlib
|
|
testImplementation deps.test.junit
|
|
testImplementation deps.test.mockito
|
|
testImplementation deps.test.mockitoKotlin
|
|
testImplementation deps.test.truth
|
|
testImplementation(project(":libraries:rib-test")) {
|
|
transitive = false
|
|
}
|
|
}
|