summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-11-26 23:48:18 +0530
committerAditya Wasan <adityawasan55@gmail.com>2019-11-26 23:48:18 +0530
commitdf0c886152f9792c1856c96984e6d775656c42dc (patch)
tree40b555687eb2ad6cb9f2a53dbe69664f7f0fa4fa /build.gradle
parentbf9892c0471e4d4c1e7bde4325a514d1a47ca1b4 (diff)
Rewrite Gradle configuration to simplify further (#581)
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle19
1 files changed, 14 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index a8e3e30b..dae64bea 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
buildscript {
- apply from: rootProject.file('versions.gradle')
+ apply from: rootProject.file('dependencies.gradle')
repositories {
google()
jcenter()
@@ -11,9 +11,9 @@ buildscript {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
- classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin
- classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
- classpath 'com.diffplug.spotless:spotless-plugin-gradle:' + versions.spotless
+ classpath deps.gradle_plugin.android
+ classpath deps.gradle_plugin.kotlin
+ classpath deps.gradle_plugin.spotless
}
}
@@ -26,7 +26,7 @@ allprojects {
}
subprojects {
- apply from: rootProject.file('versions.gradle')
+ apply from: rootProject.file('dependencies.gradle')
apply from: rootProject.file('spotless.gradle')
repositories {
google()
@@ -56,6 +56,15 @@ subprojects {
targetCompatibility = JavaVersion.VERSION_1_8
}
}
+ tasks.withType(JavaCompile) {
+ options.compilerArgs << '-Xlint:unchecked'
+ options.deprecation = true
+ }
+ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+ }
}
apply from: rootProject.file('spotless.root.gradle')