-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (78 loc) · 2.42 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
id 'net.researchgate.release' version '2.5.0'
id 'nebula.rpm' version '4.3.0'
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'findbugs'
group 'com.social.enactive'
repositories {
mavenCentral()
jcenter()
maven {
url 'https://repo.spring.io/libs-snapshot'
}
}
task setCompiler {
compileJava.options.compilerArgs << '-parameters'
}
jacoco {
toolVersion = '0.7.6.201602180812'
}
compileJava.dependsOn setCompiler
jacocoTestReport.dependsOn test
/******************************************************************************
* FINDBUGS CODE COVERAGE *
******************************************************************************/
tasks.withType(FindBugs) {
ignoreFailures = true
source 'src'
include "*/.java"
exclude "/build/"
reports {
xml.enabled false
html.enabled true
html.stylesheet resources.text.fromFile('../config/xsl/fancy.xsl')
}
}
}
subprojects {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = 'UTF-8'
defaultTasks = ['clean', 'build']
project.ext.environment = System.getProperty("env", "dev")
configurations.all {
exclude group: 'log4j'
exclude group: 'org.apache.tomcat.embed'
resolutionStrategy.cacheChangingModulesFor 600, 'seconds'
}
task findbugsAll {
dependsOn jacocoTestReport
dependsOn tasks.withType(FindBugs)
}
}
/******************************************************************************
* GRADLE WRAPPER CONTROL *
******************************************************************************/
task wrapper(type: Wrapper) {
gradleVersion = '4.4.1'
}
/******************************************************************************
* JACOCO CODE COVERAGE *
******************************************************************************/
jacocoTestReport {
reports {
html {
enabled true
}
xml {
enabled true
}
}
}
test.finalizedBy(project.tasks.jacocoTestReport)