forked from mapfish/mapfish-print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (103 loc) · 3.22 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
defaultTasks 'build'
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
scriptFile = "generated-gradlew"
}
allprojects {
group = 'org.mapfish.print'
version = '3.9-SNAPSHOT'
ext.junitVersion = "4.11"
ext.springVersion = "3.2.8.RELEASE"
ext.jasperReportVersion = "6.1.1"
ext.groovyVersion = "2.3.3"
ext."signing.keyId" = signing_keyId
ext."signing.secretKeyRingFile" = signing_secretKeyRingFile
ext."signing.password" = signing_password
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:1.4.0'
}
}
configurations.all {
resolutionStrategy {
force 'xml-apis:xml-apis:1.0.b2'
}
}
apply plugin: 'org.akhikhl.gretty'
import org.akhikhl.gretty.AppStartTask
task appRun(type: AppStartTask) {
}
configure(subprojects.findAll {['core', 'examples', 'docs'].contains(it.name)}) {
repositories {
mavenLocal()
mavenCentral()
maven {url "http://download.osgeo.org/webdav/geotools"}
maven {url "http://jasperreports.sourceforge.net/maven2"}
maven {url "https://dl.bintray.com/readytalk/maven"}
maven {url "http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts"}
maven {url "http://maven.geo-solutions.it"}
}
}
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)
checkstyle {
configFile = file("$rootProject.rootDir/checkstyle_checks.xml")
configProperties = ['basedir': project.rootDir.path]
ignoreFailures = false
reportsDir = file("$project.buildDir/reports/checkstyleReports")
}
checkstyleTest.enabled = false
String fullVersion = System.getProperty("java.specification.version");
String findbugsToolVersion = "3.0.1"
if (fullVersion.startsWith("1.6")) {
findbugsToolVersion = "2.0.3"
}
findbugs {
toolVersion = findbugsToolVersion
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 {
jvmArgs '-XX:MaxPermSize=256m', '-XX:+UseConcMarkSweepGC', '-XX:+CMSClassUnloadingEnabled'
minHeapSize = "128m"
maxHeapSize = "512m"
testLogging {
exceptionFormat = 'full'
}
}
sourceSets {
test {
output.resourcesDir = output.classesDir
}
}
tasks.withType(JavaCompile) {
options.encoding = "utf-8"
}
tasks.withType(Javadoc) {
options.encoding = "utf-8"
}
}