forked from diffplug/spotless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (46 loc) · 1.69 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
plugins {
// dependencyUpdates https://github.com/ben-manes/gradle-versions-plugin/releases
id 'com.github.ben-manes.versions' version '0.22.0'
// https://github.com/diffplug/goomph/blob/master/CHANGES.md
id 'com.diffplug.gradle.eclipse.resourcefilters' version '3.18.1'
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
id 'com.gradle.plugin-publish' version '0.10.1' apply false
// https://github.com/bintray/gradle-bintray-plugin/releases
id 'com.jfrog.bintray' version '1.8.4' apply false
// https://github.com/mnlipp/jdrupes-mdoclet/releases
id 'org.jdrupes.mdoclet' version '1.0.5' apply false
// https://github.com/spotbugs/spotbugs/releases
id "com.github.spotbugs" version "2.0.0" apply false
// https://github.com/diffplug/spotless-changelog
id "com.diffplug.spotless-changelog" version "1.1.0" apply false
}
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.gradle.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.SpotBugsTask
}