mirror of
https://github.com/home-assistant/android
synced 2024-09-19 08:01:31 +00:00
247cef3c72
* Increase tool version, enable linting again. * Fix lint errors. * Ensure ktlint is working. * Use correct build tools in travis.
48 lines
1 KiB
Plaintext
48 lines
1 KiB
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)
|
|
}
|
|
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
|
|
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)
|
|
}
|