build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (C) 2014 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. */
  16. apply plugin: 'com.android.library'
  17. version = testingSupportLibVersion
  18. group = 'com.android.support.test'
  19. configurations {
  20. androidTestCompile.exclude module: 'exposed-instrumentation-api-publish'
  21. }
  22. dependencies {
  23. provided project(path: ':exposed-instrumentation-api-provided', configuration: 'androidJar')
  24. publish project(path: ':exposed-instrumentation-api-publish', configuration: 'androidJar')
  25. compile 'junit:junit:4.12'
  26. compile 'com.android.support:support-annotations:'+supportLibVersion
  27. androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
  28. androidTestCompile 'org.hamcrest:hamcrest-integration:1.3'
  29. androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
  30. }
  31. android {
  32. lintOptions {
  33. abortOnError false
  34. }
  35. packagingOptions {
  36. exclude 'LICENSE.txt'
  37. }
  38. defaultConfig {
  39. testApplicationId "android.support.test.tests"
  40. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  41. }
  42. }
  43. apply from: "../publish.gradle"
  44. apply from: "../contTest.gradle"