forked from LibChecker/LibChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
35 lines (32 loc) · 1.16 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import com.diffplug.gradle.spotless.SpotlessExtension
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.protobuf) apply false
alias(libs.plugins.hiddenApiRefine) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.moshiX) apply false
alias(libs.plugins.spotless) apply false
id("build-logic") apply false
}
allprojects {
plugins.apply(rootProject.libs.plugins.spotless.get().pluginId)
extensions.configure<SpotlessExtension> {
kotlin {
target("src/**/*.kt")
ktlint(rootProject.libs.ktlint.get().version)
}
kotlinGradle {
ktlint(rootProject.libs.ktlint.get().version)
}
}
// Configure Java to use our chosen language level. Kotlin will automatically pick this up.
// See https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support
plugins.withType<JavaBasePlugin>().configureEach {
extensions.configure<JavaPluginExtension> {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
}
}