2021-03-21 05:00:55 +01:00
|
|
|
import Versions.ktlint
|
2020-06-05 21:41:13 +02:00
|
|
|
|
2021-03-21 05:00:55 +01:00
|
|
|
plugins {
|
|
|
|
id(Plugins.ktLint.name) version Plugins.ktLint.version
|
|
|
|
id(Plugins.gradleVersions.name) version Plugins.gradleVersions.version
|
2020-06-05 21:41:13 +02:00
|
|
|
}
|
2020-03-07 13:08:50 +01:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
maven { setUrl("https://jitpack.io") }
|
2020-05-31 02:30:53 +02:00
|
|
|
maven { setUrl("https://plugins.gradle.org/m2/") }
|
2020-03-07 13:08:50 +01:00
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-21 05:00:55 +01:00
|
|
|
subprojects {
|
|
|
|
apply(plugin = Plugins.ktLint.name)
|
|
|
|
ktlint {
|
|
|
|
debug.set(true)
|
|
|
|
verbose.set(true)
|
|
|
|
android.set(false)
|
|
|
|
outputToConsole.set(true)
|
|
|
|
ignoreFailures.set(false)
|
|
|
|
ignoreFailures.set(true)
|
|
|
|
enableExperimentalRules.set(false)
|
|
|
|
reporters {
|
|
|
|
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
|
|
|
|
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.JSON)
|
|
|
|
}
|
|
|
|
filter {
|
|
|
|
exclude("**/generated/**")
|
|
|
|
include("**/kotlin/**")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
dependencies {
|
|
|
|
classpath(LegacyPluginClassPath.fireBaseCrashlytics)
|
|
|
|
classpath(LegacyPluginClassPath.androidGradlePlugin)
|
|
|
|
classpath(LegacyPluginClassPath.googleServices)
|
|
|
|
classpath(LegacyPluginClassPath.kotlinExtensions)
|
|
|
|
classpath(LegacyPluginClassPath.kotlinPlugin)
|
|
|
|
classpath(LegacyPluginClassPath.aboutLibraries)
|
|
|
|
classpath(LegacyPluginClassPath.kotlinSerializations)
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
|
|
|
|
rejectVersionIf {
|
|
|
|
isNonStable(candidate.version)
|
|
|
|
}
|
|
|
|
// optional parameters
|
|
|
|
checkForGradleUpdate = true
|
|
|
|
outputFormatter = "json"
|
|
|
|
outputDir = "build/dependencyUpdates"
|
|
|
|
reportfileName = "report"
|
|
|
|
}
|
2020-05-31 02:30:53 +02:00
|
|
|
|
2020-03-07 13:08:50 +01:00
|
|
|
tasks.register("clean", Delete::class) {
|
|
|
|
delete(rootProject.buildDir)
|
2021-03-21 05:00:55 +01:00
|
|
|
}
|