blob: 2bf0481755b6cf450d44033dbfd439bd9f9f7189 [file] [log] [blame]
Florina Muntenescu34f575b2017-07-17 10:38:50 +01001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080016
17import static android.support.dependencies.DependenciesKt.*
18
Aurimas Liutikas238e4802017-12-14 10:52:11 -080019plugins {
20 id("SupportAndroidTestAppPlugin")
21 id("kotlin-kapt")
22 id("kotlin-android")
23}
Florina Muntenescu34f575b2017-07-17 10:38:50 +010024
Florina Muntenescu34f575b2017-07-17 10:38:50 +010025android {
Florina Muntenescu34f575b2017-07-17 10:38:50 +010026 defaultConfig {
Florina Muntenescu34f575b2017-07-17 10:38:50 +010027 javaCompileOptions {
28 annotationProcessorOptions {
29 arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
30 }
31 }
32 }
Florina Muntenescu34f575b2017-07-17 10:38:50 +010033 sourceSets {
34 androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
35 }
36}
37
38dependencies {
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080039 implementation(project(":room:common"))
40 implementation(project(":persistence:db"))
41 implementation(project(":persistence:db-framework"))
42 implementation(project(":room:runtime"))
43 implementation(project(":arch:runtime"))
Florina Muntenescu34f575b2017-07-17 10:38:50 +010044
Aurimas Liutikas1187af12017-11-28 15:28:01 -080045 implementation(SUPPORT_APPCOMPAT, libs.support_exclude_config)
Florina Muntenescu34f575b2017-07-17 10:38:50 +010046 kaptAndroidTest project(":room:compiler")
47
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080048 androidTestImplementation(TEST_RUNNER) {
Florina Muntenescu34f575b2017-07-17 10:38:50 +010049 exclude module: 'support-annotations'
50 exclude module: 'hamcrest-core'
51 }
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080052 androidTestImplementation(ESPRESSO_CORE, {
Florina Muntenescu34f575b2017-07-17 10:38:50 +010053 exclude group: 'com.android.support', module: 'support-annotations'
54 exclude module: "hamcrest-core"
55 })
56 // IJ's gradle integration just cannot figure this out ...
57 androidTestImplementation project(':lifecycle:extensions')
58 androidTestImplementation project(':lifecycle:common')
59 androidTestImplementation project(':lifecycle:runtime')
60 androidTestImplementation project(':room:testing')
61 androidTestImplementation project(':room:rxjava2')
62 androidTestImplementation project(':arch:core-testing')
Yigit Boyarc71517d2018-02-09 13:34:18 -080063 androidTestImplementation(GUAVA_ANDROID)
Aurimas Liutikas81b5bac2017-11-28 13:26:43 -080064 androidTestImplementation(RX_JAVA)
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080065 testImplementation(MOCKITO_CORE)
Florina Muntenescu34f575b2017-07-17 10:38:50 +010066}
67
Florina Muntenescu34f575b2017-07-17 10:38:50 +010068tasks['check'].dependsOn(tasks['connectedCheck'])
69
70uploadArchives.enabled = false