From df0c886152f9792c1856c96984e6d775656c42dc Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 26 Nov 2019 23:48:18 +0530 Subject: Rewrite Gradle configuration to simplify further (#581) Signed-off-by: Harsh Shandilya --- build.gradle | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'build.gradle') 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') -- cgit v1.2.3