forked from diffplug/spotless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
40 lines (36 loc) · 993 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
buildscript {
repositories {
mavenCentral()
}
}
apply from: rootProject.file('gradle/java-publish.gradle')
apply from: rootProject.file('gradle/changelog.gradle')
allprojects {
apply from: rootProject.file('gradle/spotless.gradle')
}
apply from: rootProject.file('gradle/spotless-freshmark.gradle')
spotless {
groovyGradle {
target '*.gradle', 'gradle/*.gradle'
}
format 'dotfiles', {
target '.gitignore', '.gitattributes', '.editorconfig'
indentWithSpaces(2)
trimTrailingWhitespace()
endWithNewline()
}
}
// root eclipse project
apply plugin: 'com.diffplug.eclipse.resourcefilters'
eclipseResourceFilters {
exclude().folders().name('.git')
exclude().folders().name('build').recursive()
exclude().folders().name('lib')
exclude().folders().name('lib-extra')
exclude().folders().name('plugin-gradle')
exclude().folders().name('plugin-maven')
exclude().folders().name('testlib')
}
static Class<?> spotBugsTaskType() {
return com.github.spotbugs.snom.SpotBugsTask
}