-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (42 loc) · 872 Bytes
/
build.gradle
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
36
37
38
39
40
41
42
43
44
45
46
47
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
id "com.diffplug.spotless" version "6.12.0"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
}
}
println(subprojects)
configure(allprojects - project(":native")) {
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
apply plugin: 'com.diffplug.spotless'
spotless {
format 'misc', {
target '*.gradle', '*.md', '.gitignore'
trimTrailingWhitespace()
indentWithTabs()
endWithNewline()
}
java {
googleJavaFormat('1.15.0').aosp().reflowLongStrings()
importOrder()
removeUnusedImports()
endWithNewline()
formatAnnotations()
trimTrailingWhitespace()
}
kotlin {
ktfmt().dropboxStyle()
}
kotlinGradle {
target '*.gradle.kts' // default target for kotlinGradle
ktlint() // or ktfmt() or prettier()
}
}
}