forked from hygieia/hygieia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
96 lines (78 loc) · 2.11 KB
/
build.gradle
File metadata and controls
96 lines (78 loc) · 2.11 KB
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
95
96
plugins {
id 'nebula.provided-base' version '2.2.2'
}
task createWrapper(type: Wrapper) {
description = "Create a gradle wrapper for you project"
gradleVersion = '2.4'
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'idea'
apply plugin: 'eclipse'
// apply nebula plugins to all projects
apply plugin: "nebula.provided-base"
// code checks
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
apply plugin: "jacoco"
group = "com.capitalone.dashboard"
version = "1.0.0"
ext.vendor = "capitalone"
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext.springVer = "4.1.0.RELEASE"
ext.springBootVer = "1.2.5.RELEASE"
repositories {
mavenCentral()
}
/// Code checks
checkstyle {
configFile = rootProject.file('gradle/config/checkstyle.xml')
ignoreFailures = true // for now..
}
pmd {
ignoreFailures = true // for now..
}
findbugs {
ignoreFailures = true // for now..
}
// exclude the checkstyle, findbugsTest, pmdTest on test source..
gradle.startParameter.excludedTaskNames += ["checkstyleTest", "findbugsTest", "pmdTest"]
jacoco {
toolVersion = '0.7.2.201409121644'
}
tasks.check.dependsOn(jacocoTestReport)
////
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
task docJar(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
}
artifacts { // define the artifacts for a service
archives sourcesJar { classifier "sources" }
archives docJar { classifier "javadoc" }
}
jar.doFirst {
manifest {
attributes 'Implementation-Title': "${archivesBaseName}",
'Implementation-Version': "${version}",
'Implementation-Vendor': "${vendor}",
provider: 'gradle'
}
}
}
// http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
archivesBaseName = "hygieia"
dependencies {
}