-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
36 lines (30 loc) · 946 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id "com.diffplug.spotless" version "6.11.0"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
indentWithSpaces() // Default 4
endWithNewline()
}
java {
target 'src/*/java/**/*.java'
// apply a specific flavor of google-java-format
importOrder()
palantirJavaFormat('2.9.0')
indentWithSpaces() // Default 4
// fix formatting of type annotations
formatAnnotations()
}
}
}