diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 19 |
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') |