husky/husky/build.gradle.kts
Adolfo Santiago e42c103ffd
Migrated to Kotlin DSL
The project now uses Kotlin DSL instead Groovy files to compile the
whole project. The migration was a 1:1 between the old files and the new
ones.

Also, AppInjector and SendStatusBroadcastReceiver were fixed according
the building errors.
2021-08-29 09:58:45 +02:00

44 lines
816 B
Kotlin

import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
buildscript {
addRepos(repositories)
dependencies {
// Base
classpath(GradlePlugins.android)
classpath(GradlePlugins.kotlin)
// Plugins
classpath(GradlePlugins.gradleVersions)
}
}
allprojects {
addRepos(repositories)
tasks.withType<JavaCompile> {
options.encoding = DefaultConfig.encoding
options.compilerArgs.addAll(
listOf(
"-Xlint:all",
"-Xlint:unchecked",
"-Xlint:-deprecation"
)
)
}
tasks.withType<DependencyUpdatesTask> {
gradleReleaseChannel = "current"
rejectVersionIf {
!isNonStable(candidate.version)
}
}
}
tasks.register<Delete>(BuildTasks.taskTypeClean) {
delete(rootProject.buildDir)
delete(project.buildDir)
delete(buildDir)
delete("${projectDir}/buildSrc/build")
}