diff --git a/buildsystem/dependencies.gradle b/buildsystem/dependencies.gradle index d1d535ef..e04de5ba 100644 --- a/buildsystem/dependencies.gradle +++ b/buildsystem/dependencies.gradle @@ -6,7 +6,7 @@ allprojects { ext { //Android - androidBuildToolsVersion = "24.0.1" + androidBuildToolsVersion = '24.0.1' androidMinSdkVersion = 15 androidTargetSdkVersion = 21 androidCompileSdkVersion = 21 diff --git a/data/build.gradle b/data/build.gradle index cebd214b..e65c4822 100644 --- a/data/build.gradle +++ b/data/build.gradle @@ -1,10 +1,10 @@ buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'me.tatarka:gradle-retrolambda:3.2.3' - } + repositories { + mavenCentral() + } + dependencies { + classpath 'me.tatarka:gradle-retrolambda:3.2.3' + } } apply plugin: 'com.android.library' @@ -12,56 +12,57 @@ apply plugin: 'com.neenbedankt.android-apt' apply plugin: 'me.tatarka.retrolambda' android { - defaultPublishConfig "debug" + defaultPublishConfig "debug" - def globalConfiguration = rootProject.extensions.getByName("ext") + def globalConfiguration = rootProject.extensions.getByName("ext") - compileSdkVersion globalConfiguration.getAt("androidCompileSdkVersion") - buildToolsVersion globalConfiguration.getAt("androidBuildToolsVersion") + compileSdkVersion globalConfiguration.getAt("androidCompileSdkVersion") + buildToolsVersion = globalConfiguration["androidBuildToolsVersion"] - defaultConfig { - minSdkVersion globalConfiguration.getAt("androidMinSdkVersion") - targetSdkVersion globalConfiguration.getAt("androidTargetSdkVersion") - versionCode globalConfiguration.getAt("androidVersionCode") - } + defaultConfig { + minSdkVersion globalConfiguration.getAt("androidMinSdkVersion") + targetSdkVersion globalConfiguration.getAt("androidTargetSdkVersion") + versionCode globalConfiguration.getAt("androidVersionCode") + } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } + 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' - } + 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 - } + 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 + def dataDependencies = rootProject.ext.dataDependencies + def testDependencies = rootProject.ext.dataTestDependencies - compile project(':domain') - provided dataDependencies.javaxAnnotation - compile dataDependencies.javaxInject - compile dataDependencies.okHttp - compile dataDependencies.gson - compile dataDependencies.rxJava - compile dataDependencies.rxAndroid - compile dataDependencies.androidAnnotations + compile project(':domain') + provided dataDependencies.javaxAnnotation + compile dataDependencies.javaxInject + compile dataDependencies.okHttp + compile dataDependencies.gson + compile dataDependencies.rxJava + compile dataDependencies.rxAndroid + compile dataDependencies.androidAnnotations - testCompile testDependencies.junit - testCompile testDependencies.assertj - testCompile testDependencies.mockito - testCompile testDependencies.robolectric + testCompile testDependencies.junit + testCompile testDependencies.assertj + testCompile testDependencies.mockito + testCompile testDependencies.robolectric } diff --git a/presentation/build.gradle b/presentation/build.gradle index d22cda2e..30b91138 100644 --- a/presentation/build.gradle +++ b/presentation/build.gradle @@ -5,7 +5,7 @@ android { def globalConfiguration = rootProject.extensions.getByName("ext") compileSdkVersion globalConfiguration.getAt("androidCompileSdkVersion") - buildToolsVersion globalConfiguration.getAt("androidBuildToolsVersion") + buildToolsVersion = globalConfiguration["androidBuildToolsVersion"] defaultConfig { minSdkVersion globalConfiguration.getAt("androidMinSdkVersion")