-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.26 KB
/
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
48
49
50
51
52
53
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "com.diffplug.spotless" version "5.15.2"
id "org.ec4j.editorconfig" version "0.0.3"
}
repositories {
mavenCentral()
}
dependencies {
}
spotless {
// optional: limit format enforcement to just the files changed by this feature branch
// ratchetFrom 'origin/master'
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces() // or tabs. Takes an integer argument if you don't like 4
endWithNewline()
}
java {
// Inferring targets won't work here
target '**/*.java'
// apply a specific flavor of google-java-format
// googleJavaFormat('1.8').aosp().reflowLongStrings()
// make sure every file has the following copyright header.
// optionally, Spotless can set copyright years by digging
// through git history (see "license" section below)
// licenseHeader '/* (C)$YEAR */'
}
}
gradle.projectsEvaluated {
subprojects {
test {
filter {
setFailOnNoMatchingTests(false)
}
}
}
}