forked from mapfish/mapfish-print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (91 loc) · 2.97 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
/*
* Copyright (C) 2014 Camptocamp
*
* This file is part of MapFish Print
*
* MapFish Print is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MapFish Print is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MapFish Print. If not, see <http://www.gnu.org/licenses/>.
*/
defaultTasks 'build'
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
scriptFile = "generated-gradlew"
}
allprojects {
group = 'org.mapfish.print'
version = '3.3-SNAPSHOT'
ext.junitVersion = "4.11"
ext.springVersion = "3.2.8.RELEASE"
ext.jasperReportVersion = "5.6.1"
ext.groovyVersion = "2.3.3"
ext."signing.keyId" = signing_keyId
ext."signing.secretKeyRingFile" = signing_secretKeyRingFile
ext."signing.password" = signing_password
}
configure(subprojects.findAll {['core', 'examples'].contains(it.name)}) {
apply plugin: 'java'
apply plugin: 'findbugs'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'project-report'
apply plugin: 'checkstyle'
jar.dependsOn(checkstyleMain, findbugsMain)
repositories {
mavenLocal()
mavenCentral()
maven {url "http://dev.mapfish.org/maven/repository"}
maven {url "http://download.osgeo.org/webdav/geotools"}
}
checkstyle {
configFile = file("$rootProject.rootDir/checkstyle_checks.xml")
configProperties = ['basedir': project.rootDir.path]
ignoreFailures = false
reportsDir = file("$project.buildDir/reports/checkstyleReports")
}
checkstyleTest.enabled = false
findbugs {
toolVersion = "2.0.3"
ignoreFailures = false
reportsDir = file("$project.buildDir/reports/findbugsReports")
effort = "max"
reportLevel = "high"
excludeFilter = file("$rootProject.projectDir/findbugs-exclude.xml")
}
findbugsTest.enabled = false
sourceCompatibility = 1.6
targetCompatibility = 1.6
compileJava.options.compilerArgs = ['-Xlint:deprecation', '-Xlint:unchecked']
dependencies {
testCompile (
"junit:junit:${project.junitVersion}",
'org.mockito:mockito-core:1.9.5',
"org.springframework:spring-test:${springVersion}"
)
}
test {
testLogging {
exceptionFormat = 'full'
}
}
sourceSets {
test {
output.resourcesDir = output.classesDir
}
}
tasks.withType(JavaCompile) {
options.encoding = "utf-8"
}
tasks.withType(Javadoc) {
options.encoding = "utf-8"
}
}