mirror of
https://github.com/home-assistant/android
synced 2024-10-06 16:19:38 +00:00
f87ed32560
* Switch to using Kotlin in of groovy for the gradle configurations. * Gradle file cleanup. * Switch to using Kotlin in of groovy for the gradle configurations. * Gradle file cleanup. * Retrofit (and maybe others libs) requires java compile options 1.8, still backwards compatible. * Prep for release 1.9.0-XXX * Fix ktLint errors.
46 lines
976 B
Plaintext
46 lines
976 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven(url = Config.Repository.fabric)
|
|
maven(url = Config.Repository.gradle)
|
|
}
|
|
dependencies {
|
|
classpath(Config.Plugin.android)
|
|
classpath(Config.Plugin.kotlin)
|
|
classpath(Config.Plugin.google)
|
|
classpath(Config.Plugin.appDistribution)
|
|
classpath(Config.Plugin.fabric)
|
|
classpath(Config.Plugin.ktlint)
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven(url = Config.Repository.lokalize)
|
|
}
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
println("Configuring $name in project ${project.name}...")
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.register("clean").configure {
|
|
delete("build")
|
|
}
|
|
|
|
ktlint {
|
|
android.set(true)
|
|
}
|