mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2026-03-13 10:13:41 +08:00
71 lines
1.9 KiB
Groovy
71 lines
1.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
//apply plugin: 'com.neenbedankt.android-apt'
|
|
apply plugin: 'me.tatarka.retrolambda'
|
|
|
|
android {
|
|
defaultPublishConfig "debug"
|
|
|
|
def globalConfiguration = rootProject.extensions.getByName("ext")
|
|
|
|
compileSdkVersion globalConfiguration.getAt("androidCompileSdkVersion")
|
|
buildToolsVersion globalConfiguration.getAt("androidBuildToolsVersion")
|
|
|
|
defaultConfig {
|
|
minSdkVersion globalConfiguration.getAt("androidMinSdkVersion")
|
|
targetSdkVersion globalConfiguration.getAt("androidTargetSdkVersion")
|
|
versionCode globalConfiguration.getAt("androidVersionCode")
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'LICENSE.txt'
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
exclude 'META-INF/ASL2.0'
|
|
exclude 'META-INF/NOTICE'
|
|
exclude 'META-INF/LICENSE'
|
|
}
|
|
|
|
lintOptions {
|
|
quiet true
|
|
abortOnError false
|
|
ignoreWarnings true
|
|
disable 'InvalidPackage' // Some libraries have issues with this
|
|
disable 'OldTargetApi' // Due to Robolectric that modifies the manifest when running tests
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def dataDependencies = rootProject.ext.dataDependencies
|
|
def testDependencies = rootProject.ext.dataTestDependencies
|
|
|
|
implementation project(':domain')
|
|
compileOnly dataDependencies.javaxAnnotation
|
|
implementation dataDependencies.javaxInject
|
|
implementation dataDependencies.okHttp
|
|
implementation dataDependencies.gson
|
|
implementation dataDependencies.rxJava
|
|
implementation dataDependencies.rxAndroid
|
|
implementation dataDependencies.androidAnnotations
|
|
|
|
testImplementation testDependencies.junit
|
|
testImplementation testDependencies.assertj
|
|
testImplementation testDependencies.mockito
|
|
testImplementation testDependencies.robolectric
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
} |