2023-01-16 21:28:45 +00:00
|
|
|
plugins {
|
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
|
|
|
|
id("com.diffplug.spotless") version "6.4.1"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-07-05 22:31:37 +00:00
|
|
|
classpath(libs.android.gradle.plugin)
|
|
|
|
classpath(libs.kotlin.gradle.plugin)
|
|
|
|
classpath(libs.kotlin.serialization.plugin)
|
|
|
|
classpath(libs.dokka.gradle.plugin)
|
|
|
|
classpath(libs.ktlint.gradle.plugin)
|
|
|
|
classpath(libs.jacoco.gradle.plugin)
|
|
|
|
classpath(libs.maven.publish.plugin)
|
|
|
|
classpath(libs.kover.plugin)
|
|
|
|
classpath(libs.atomic.fu.gradle.plugin)
|
2023-01-16 21:28:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
|
|
apply(plugin = "com.diffplug.spotless")
|
|
|
|
|
|
|
|
ktlint {
|
|
|
|
disabledRules.add("import-ordering")
|
|
|
|
}
|
|
|
|
|
|
|
|
spotless {
|
|
|
|
kotlin {
|
|
|
|
target("src/**/*.kt")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
withType<JavaCompile>().configureEach {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11.name
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11.name
|
|
|
|
}
|
|
|
|
}
|