-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (91 loc) · 2.93 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
95
96
97
98
99
100
101
102
103
104
105
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'findbugs'
apply plugin: 'build-dashboard'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
//apply plugin: 'pmd'
apply plugin: 'com.github.kt3k.coveralls'
sourceCompatibility = 1.7
version = '0.1b'
repositories {
mavenCentral()
}
configurations {
exportLibs {
extendsFrom compile
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'
}
}
dependencies {
compile group: 'org.glassfish.jersey.connectors', name:'jersey-apache-connector', version:'2.17'
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: '2.+'
compile group: 'com.google.code.gson', name: 'gson', version: '2.+'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.+'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.+'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.+'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.+'
compile group: 'com.google.guava', name: 'guava', version: '16.+'
compile group: 'javax', name:'javaee-api', version: '7.+'
compile group: 'commons-lang', name:'commons-lang', version: '2.+'
compile group: 'org.hibernate', name: 'hibernate-validator-annotation-processor', version: '4.+'
compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.+'
compile group: 'javax.validation', name: 'validation-api', version: '1.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.+'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.+'
}
task jarWithDependencies(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Coredata Java API',
'Implementation-Version': version
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
ignoreFailures = true
effort = "max"
reportLevel = "low"
}
/*
pmd {
toolVersion = "5.2.3"
ignoreFailures = true
ruleSetFiles = files("${rootDir}/config/pmd/pmd-rules.xml")
// println "PMD version: ${toolVersion}"
}
pmdMain {
reports {
xml.enabled true
html.enabled true
}
}
*/
checkstyle {
ignoreFailures = true
configFile = new File(rootDir, "config/checkstyle/jis_checks.xml")
}
jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
xml.enabled true
csv.enabled false
html.destination "${buildDir}/reports/jacocoHtml"
}
//classDumpFile = file("$buildDir/jacoco/classpathdumps")
}