forked from jbellmann/jcr-springextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
255 lines (227 loc) · 8.03 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
description = 'Springextension JCR'
apply plugin: 'base'
apply plugin: 'idea'
buildscript {
repositories {
maven { url 'https://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:bundlor-plugin:0.1.2'
classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.2.8'
}
}
configure(allprojects) {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'org.springframework'
repositories {
mavenCentral()
maven { url 'http://repo.springsource.org/plugins-release' } // for bundlor
maven { url "http://repo.spring.io/libs-release" }
maven { url "http://repo.spring.io/milestone" } // for AspectJ 1.8.0.RC3
maven { url "http://repo.spring.io/snapshot" } // temporarily until Reactor 1.1.0.M4
}
}
configure(subprojects) { subproject ->
apply from: "${rootProject.projectDir}/publish-maven.gradle"
apply plugin: 'bundlor'
apply plugin: 'signing'
sourceCompatibility=1.6
targetCompatibility=1.6
ext {
aspectjVersion = '1.6.12'
cglibVersion = '2.2.2'
commonsNetVersion = '3.0.1'
easymockVersion = '3.1'
groovyVersion = '1.8.5'
javaxActivationVersion = '1.1.1'
junitVersion = '4.11'
log4jVersion = '1.2.17'
slf4jVersion = '1.7.6'
mockitoVersion = '1.9.5'
springVersion = '4.1.6.RELEASE'
jackrabbitVersion = '2.10.1'
jackrabbitOcmVersion = '2.0.0'
isReleaseVersion = version.endsWith("RELEASE")
}
jar {
manifest.attributes['Implementation-Title'] = subproject.name
manifest.attributes['Implementation-Version'] = subproject.version
from("${rootProject.projectDir}/src/dist") {
include "license.txt"
//include "notice.txt"
into "META-INF"
expand(copyright: new Date().format('yyyy'), version: project.version)
}
}
eclipse {
project {
natures += 'org.springframework.ide.eclipse.core.springnature'
}
}
sourceSets {
test {
resources {
srcDirs = ['src/test/resources', 'src/test/java']
}
}
}
// See http://www.gradle.org/docs/current/userguide/dependency_management.html#sub:configurations
// and http://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html
configurations {
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo
}
// dependencies that are common across all java projects
dependencies {
testCompile "cglib:cglib-nodep:$cglibVersion"
testCompile "junit:junit-dep:$junitVersion"
testCompile "log4j:log4j:$log4jVersion"
testCompile "org.easymock:easymock:$easymockVersion"
testCompile "org.easymock:easymockclassextension:$easymockVersion"
testCompile "org.hamcrest:hamcrest-all:1.1"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.apache.geronimo.specs:geronimo-servlet_3.0_spec:1.0"
testCompile "org.springframework:spring-test:$springVersion"
jacoco group: "org.jacoco", name: "org.jacoco.agent", version: "0.5.6.201201232323", classifier: "runtime"
}
// enable all compiler warnings; individual projects may customize further
ext.xLintArg = '-Xlint:all'
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
test {
// suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO)
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.integration.*"
}
bundlor {
enabled = true
failOnWarnings = true
bundleManifestVersion = 2
bundleVendor = 'SpringSource'
bundleName = project.description
bundleVersion = project.version
importTemplate = [
'org.apache.log4j.*;version="['+log4jVersion+'], 2.0.0)"'
]
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}
signing {
required {isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives")}
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository (url: mavenRepoUrl)
}
}
}
}
project('se-jcr-commons') {
description = 'Springextension JCR -- commons'
dependencies {
compile "javax.jcr:jcr:2.0"
compile "javax.servlet:servlet-api:2.5"
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-beans:$springVersion"
compile "org.springframework:spring-context:$springVersion"
compile "org.springframework:spring-context-support:$springVersion"
compile "org.springframework:spring-aop:$springVersion"
compile "org.springframework:spring-tx:$springVersion"
compile "org.springframework:spring-webmvc:$springVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "xerces:xercesImpl:2.10.0"
}
bundlor {
bundleSymbolicName = "org.springframework.extensions.jcr.commons"
importTemplate += [
'javax.jcr.*;version="[2.0.0, 2.1.0)"',
'javax.servlet.*;version="[2.5.0, 3.0.0)"',
'org.springframework.core.*;version="[3.0.5, 4.0.0)"',
'org.springframework.beans.*;version="[3.0.5, 4.0.0)"',
'org.springframework.context.*;version="[3.0.5, 4.0.0)"',
'org.springframework.transaction.*;version="[3.0.5, 4.0.0)"',
'org.springframework.dao.*;version="[3.0.5, 4.0.0)"',
'org.springframework.web.*;version="[3.0.5, 4.0.0)"',
'org.springframework.util.*;version="[3.0.5, 4.0.0)"',
'org.apache.xerces.*;version="[2.10.0, 3.0.0)"',
'org.slf4j.*;version="[1.6.4, 1.7.0)"',
'org.aopalliance.*;version="[1.0.0, 2.0.0)"',
'org.w3c.*;version="0"',
'org.xml.sax.*;version="0"'
]
}
}
project('se-jcr-jackrabbit') {
description = 'Springextension JCR -- jackrabbit'
dependencies {
compile project(":se-jcr-commons")
compile "org.apache.jackrabbit:jackrabbit-api:$jackrabbitVersion"
compile "org.apache.jackrabbit:jackrabbit-core:$jackrabbitVersion"
compile "org.apache.jackrabbit:jackrabbit-jcr-rmi:$jackrabbitVersion"
compile "org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1"
}
bundlor {
bundleSymbolicName = "org.springframework.extensions.jcr.jackrabbit"
importTemplate += [
'javax.*;version="0"',
'javax.jcr.*;version="[2.0.0, 2.1.0)"',
'org.springframework.core.*;version="[3.0.5, 4.0.0)"',
'org.springframework.beans.*;version="[3.0.5, 4.0.0)"',
'org.springframework.context.*;version="[3.0.5, 4.0.0)"',
'org.springframework.transaction.*;version="[3.0.5, 4.0.0)"',
'org.springframework.dao.*;version="[3.0.5, 4.0.0)"',
'org.springframework.web.*;version="[3.0.5, 4.0.0)"',
'org.springframework.util.*;version="[3.0.5, 4.0.0)"',
'org.apache.jackrabbit.*;version="[2.4.0, 3.0.0)"',
'org.springframework.extensions.jcr.*;version="[2.0.0, 2.1.0)"',
'org.slf4j.*;version="[1.6.4, 1.7.0)"',
'org.w3c.*;version="0"',
'org.xml.sax.*;version="0"'
]
}
}
project('se-jcr-jackrabbit-ocm') {
description = 'Springextension JCR -- jackrabbit-ocm'
dependencies {
compile project(":se-jcr-jackrabbit")
compile "org.apache:jackrabbit-ocm:$jackrabbitOcmVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
}
bundlor {
bundleSymbolicName = "org.springframework.extensions.jcr.jackrabbit.ocm"
importTemplate += [
'javax.*;version="0"',
'javax.jcr.*;version="[2.0.0, 2.1.0)"',
'org.springframework.core.*;version="[3.0.5, 4.0.0)"',
'org.springframework.beans.*;version="[3.0.5, 4.0.0)"',
'org.springframework.context.*;version="[3.0.5, 4.0.0)"',
'org.springframework.transaction.*;version="[3.0.5, 4.0.0)"',
'org.springframework.dao.*;version="[3.0.5, 4.0.0)"',
'org.springframework.web.*;version="[3.0.5, 4.0.0)"',
'org.springframework.util.*;version="[3.0.5, 4.0.0)"',
'org.apache.jackrabbit.*;version="[2.4.0, 3.0.0)"',
'org.apache.jackrabbit.ocm.*;version="[1.5.3, 1.6.0)"',
'org.springframework.extensions.jcr.*;version="[2.0.0, 2.1.0)"',
'org.slf4j.*;version="[1.6.4, 1.7.0)"',
'org.w3c.*;version="0"',
'org.xml.sax.*;version="0"'
]
}
}
task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts'
gradleVersion = '1.6'
}