-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (48 loc) · 916 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
48
49
50
51
52
53
54
55
56
57
58
plugins {
id 'java'
id 'com.github.spotbugs' version '4.7.5'
}
tasks.named('wrapper') {
jarFile = rootProject.file('.gradle-wrapper/gradle-wrapper.jar')
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
subprojects {
if (it.name != 'cnf') {
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
if (
it.name != 'cnf'
) {
apply plugin: 'com.github.spotbugs'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
allprojects {
spotbugs {
toolVersion = "4.2.2"
}
spotbugsMain {
reports {
html {
enabled = true
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
}
}
}
}
def date() {
new Date().format('yyyy-MM-dd-HHmmss')
}