mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2026-03-13 10:13:41 +08:00
47 lines
1.3 KiB
Groovy
47 lines
1.3 KiB
Groovy
apply from: 'buildsystem/ci.gradle'
|
|
apply from: 'buildsystem/dependencies.gradle'
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.1.0'
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
|
|
classpath "com.fernandocejas.frodo:frodo-plugin:0.8.3"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
ext {
|
|
androidApplicationId = 'com.fernanependocejas.android10.sample.presentation'
|
|
androidVersionCode = 1
|
|
androidVersionName = "1.0"
|
|
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
|
|
testApplicationId = 'com.fernandocejas.android10.sample.presentation.test'
|
|
}
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
description 'Creates the gradle wrapper.'
|
|
gradleVersion '2.12'
|
|
}
|
|
|
|
task runDomainUnitTests(dependsOn: [':domain:test']) {
|
|
description 'Run unit tests for the domain layer.'
|
|
}
|
|
|
|
task runDataUnitTests(dependsOn: [':data:cleanTestDebugUnitTest', ':data:testDebugUnitTest']) {
|
|
description 'Run unit tests for the data layer.'
|
|
}
|
|
|
|
task runUnitTests(dependsOn: ['runDomainUnitTests', 'runDataUnitTests']) {
|
|
description 'Run unit tests for both domain and data layers.'
|
|
}
|
|
|
|
task runAcceptanceTests(dependsOn: [':presentation:connectedAndroidTest']) {
|
|
description 'Run application acceptance tests.'
|
|
}
|
|
|