home-assistant-android/build.gradle.kts

54 lines
1.4 KiB
Plaintext
Raw Normal View History

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "11.5.0"
id("com.github.ben-manes.versions") version "0.47.0"
}
buildscript {
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:8.0.2")
2023-07-01 01:14:24 +00:00
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
classpath("com.google.gms:google-services:4.3.15")
classpath("com.google.firebase:firebase-appdistribution-gradle:4.0.0")
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.9.3.0")
2023-07-01 01:14:24 +00:00
classpath("com.github.triplet.gradle:play-publisher:3.8.4")
Hilt Dependency Update (#3681) * Bump com.google.dagger:hilt-android-gradle-plugin from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-gradle-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump com.google.dagger:hilt-android-compiler from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-compiler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump com.google.dagger:hilt-android from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 19:35:11 +00:00
classpath("com.google.dagger:hilt-android-gradle-plugin:2.47")
}
}
allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
}
}
}
2021-10-14 03:46:49 +00:00
gradle.projectsEvaluated {
project(":app").tasks.matching { it.name.startsWith("publish") }.configureEach {
mustRunAfter(project(":wear").tasks.matching { it.name.startsWith("publish") })
}
}
tasks.register("clean").configure {
delete("build")
}
ktlint {
android.set(true)
}
tasks.register("versionFile").configure {
group = "publishing"
doLast {
File(projectDir, "version.txt").writeText(project.version.toString())
}
}