mirror of
https://github.com/home-assistant/android
synced 2024-09-19 16:11:37 +00:00
![Justin Bassett](/assets/img/avatar_default.png)
* Common compiling.... So I guess I have that going for me... * It's very broken... * App builds and tests pass.... * Remove other now extra files.
45 lines
895 B
Plaintext
45 lines
895 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.gradle)
|
|
}
|
|
dependencies {
|
|
classpath(Config.Plugin.android)
|
|
classpath(Config.Plugin.kotlin)
|
|
classpath(Config.Plugin.google)
|
|
classpath(Config.Plugin.appDistribution)
|
|
classpath(Config.Plugin.ktlint)
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
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)
|
|
}
|