diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-03-05 23:49:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 23:49:00 +0100 |
commit | c1bfb9183c51f8676914a7a9cb601ce560294599 (patch) | |
tree | cb4bf0024ce410a9ba933ca03c558471983deb4b | |
parent | c0f534e8252169f4affa4ae30dd7ee3955ff6039 (diff) | |
parent | 0663e422a6998aea22ccb924f752f22d77b810ed (diff) | |
download | AntennaPod-c1bfb9183c51f8676914a7a9cb601ce560294599.zip |
Merge pull request #3013 from hannesa2/buildImprovements
Build improvements
-rw-r--r-- | app/build.gradle | 24 | ||||
-rw-r--r-- | build.gradle | 11 | ||||
-rw-r--r-- | core/build.gradle | 14 |
3 files changed, 9 insertions, 40 deletions
diff --git a/app/build.gradle b/app/build.gradle index 41aacc13c..feee8bd3b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,29 +1,14 @@ -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.5' - } -} - plugins { id('com.github.triplet.play') version '2.0.0' } -import org.apache.tools.ant.filters.ReplaceTokens - apply plugin: "com.android.application" apply plugin: 'com.getkeepsafe.dexcount' -repositories { - maven { url "https://jitpack.io" } - mavenCentral() -} +import org.apache.tools.ant.filters.ReplaceTokens android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -228,10 +213,3 @@ task copyTextFiles(type: Copy) { preBuild.dependsOn filterAbout, copyTextFiles -allprojects { - gradle.projectsEvaluated { - tasks.withType(JavaCompile) { - options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial" - } - } -} diff --git a/build.gradle b/build.gradle index 3759b7db4..664cecbd9 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.3.0' - // Exclude the version that the android plugin depends on. - configurations.classpath.exclude group: "com.android.tools.external.lombok" + classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.5' } } @@ -15,6 +14,13 @@ allprojects { repositories { google() jcenter() + maven { url "https://jitpack.io" } + } + + gradle.projectsEvaluated { + tasks.withType(JavaCompile) { + options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial" + } } } @@ -35,7 +41,6 @@ subprojects { project.ext { compileSdkVersion = 26 - buildToolsVersion = "28.0.3" minSdkVersion = 14 targetSdkVersion = 26 diff --git a/core/build.gradle b/core/build.gradle index 588d3b163..c68b666d0 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,7 +2,6 @@ apply plugin: "com.android.library" android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -41,11 +40,6 @@ android { } -repositories { - maven { url "https://jitpack.io" } - mavenCentral() -} - dependencies { implementation "com.android.support:support-v4:$supportVersion" implementation "com.android.support:appcompat-v7:$supportVersion" @@ -99,11 +93,3 @@ tasks.withType(Test) { displayGranularity 2 } } - -allprojects { - gradle.projectsEvaluated { - tasks.withType(JavaCompile) { - options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial" - } - } -} |