1
1
buildscript {
2
2
repositories {
3
- maven { url ' http://repo.springsource.org/plugins-release' }
3
+ maven { url " http://repo.springsource.org/plugins-release" }
4
4
}
5
5
dependencies {
6
- classpath ' org.springframework.build.gradle:docbook-reference-plugin:0.2.8'
7
- classpath ' me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1'
6
+ classpath " org.springframework.build.gradle:docbook-reference-plugin:0.2.8"
7
+ classpath " me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1"
8
8
}
9
9
}
10
10
11
11
configure(allprojects) {
12
- group = ' org.springframework.android'
12
+ group = " org.springframework.android"
13
13
14
14
ext. androidVersion = " 4.1.1.4"
15
15
ext. springSocialVersion = " 1.0.2.RELEASE"
@@ -22,10 +22,10 @@ configure(allprojects) {
22
22
ext. commonsHttpClientVersion = " 3.1"
23
23
ext. gradleScriptDir = " ${ rootProject.projectDir} /gradle"
24
24
25
- apply plugin : ' java'
26
- apply plugin : ' eclipse'
27
- apply plugin : ' idea'
28
- apply plugin : ' javadocHotfix'
25
+ apply plugin : " java"
26
+ apply plugin : " eclipse"
27
+ apply plugin : " idea"
28
+ apply plugin : " javadocHotfix"
29
29
30
30
compileJava {
31
31
sourceCompatibility= 1.5
@@ -66,7 +66,7 @@ configure(allprojects) {
66
66
// exported to dependent projects in Eclipse to avoid false compilation errors due
67
67
// to changing APIs across these versions
68
68
eclipse. classpath. file. whenMerged { classpath ->
69
- classpath. entries. findAll { entry -> entry. path. contains(' servlet-api' ) }* . exported = false
69
+ classpath. entries. findAll { entry -> entry. path. contains(" servlet-api" ) }* . exported = false
70
70
}
71
71
}
72
72
@@ -80,14 +80,14 @@ configure(subprojects) { subproject ->
80
80
jar {
81
81
manifest. attributes[" Created-By" ] =
82
82
" ${ System.getProperty("java.version")} (${ System.getProperty("java.specification.vendor")} )"
83
- manifest. attributes[' Implementation-Title' ] = subproject. name
84
- manifest. attributes[' Implementation-Version' ] = subproject. version
83
+ manifest. attributes[" Implementation-Title" ] = subproject. name
84
+ manifest. attributes[" Implementation-Version" ] = subproject. version
85
85
86
86
from(" ${ rootProject.projectDir} /src/dist" ) {
87
87
include " license.txt"
88
88
include " notice.txt"
89
89
into " META-INF"
90
- expand(copyright : new Date (). format(' yyyy' ), version : project. version)
90
+ expand(copyright : new Date (). format(" yyyy" ), version : project. version)
91
91
}
92
92
}
93
93
@@ -100,12 +100,12 @@ configure(subprojects) { subproject ->
100
100
}
101
101
102
102
task sourcesJar(type : Jar , dependsOn :classes) {
103
- classifier = ' sources'
103
+ classifier = " sources"
104
104
from sourceSets. main. allJava
105
105
}
106
106
107
107
task javadocJar(type : Jar ) {
108
- classifier = ' javadoc'
108
+ classifier = " javadoc"
109
109
from javadoc
110
110
}
111
111
@@ -115,25 +115,25 @@ configure(subprojects) { subproject ->
115
115
}
116
116
}
117
117
118
- project(' spring-android-core' ) {
118
+ project(" spring-android-core" ) {
119
119
description = " Spring for Android Core"
120
120
121
- ext. mavenTestDir = ' ../test/spring-android-core-test/pom.xml'
121
+ ext. mavenTestDir = " ../test/spring-android-core-test/pom.xml"
122
122
123
123
dependencies {
124
124
compile(" com.google.android:android:$androidVersion " , provided)
125
125
}
126
126
}
127
127
128
- project(' spring-android-auth' ) {
129
- description = ' Spring for Android Auth'
128
+ project(" spring-android-auth" ) {
129
+ description = " Spring for Android Auth"
130
130
131
- ext. mavenTestDir = ' ../test/spring-android-auth-test/pom.xml'
131
+ ext. mavenTestDir = " ../test/spring-android-auth-test/pom.xml"
132
132
133
133
dependencies {
134
134
compile(" com.google.android:android:$androidVersion " , provided)
135
- compile(project(' :spring-android-core' ))
136
- compile(project(' :spring-android-rest-template' ))
135
+ compile(project(" :spring-android-core" ))
136
+ compile(project(" :spring-android-rest-template" ))
137
137
compile(" org.springframework.social:spring-social-core:$springSocialVersion " ) {
138
138
// exclude spring-web in favor of spring-android-rest-template
139
139
exclude group : " org.springframework" , module : " spring-web"
@@ -144,14 +144,14 @@ project('spring-android-auth') {
144
144
}
145
145
}
146
146
147
- project(' spring-android-rest-template' ) {
148
- description = ' Spring for Android Rest Template'
147
+ project(" spring-android-rest-template" ) {
148
+ description = " Spring for Android Rest Template"
149
149
150
- ext. mavenTestDir = ' ../test/spring-android-rest-template-test/pom.xml'
150
+ ext. mavenTestDir = " ../test/spring-android-rest-template-test/pom.xml"
151
151
152
152
dependencies {
153
153
compile(" com.google.android:android:$androidVersion " , provided)
154
- compile(project(' :spring-android-core' ))
154
+ compile(project(" :spring-android-core" ))
155
155
compile(" org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion " , optional)
156
156
compile(" com.fasterxml.jackson.core:jackson-databind:$jackson2Version " , optional)
157
157
compile(" com.google.code.gson:gson:$gsonVersion " , optional)
@@ -171,17 +171,17 @@ configure(subprojects) { subproject ->
171
171
task testAndroid(type : Exec , dependsOn : install) {
172
172
// suppress all console output during testing unless running `gradle --info`
173
173
logging. captureStandardOutput(LogLevel . INFO )
174
- commandLine ' mvn' , ' clean' , ' install' , ' -f ' , subproject. ext. mavenTestDir
174
+ commandLine " mvn" , " clean" , " install" , " -f " , subproject. ext. mavenTestDir
175
175
}
176
176
}
177
177
178
178
configure(rootProject) {
179
- description = ' Spring for Android'
179
+ description = " Spring for Android"
180
180
181
- apply plugin : ' docbook-reference'
181
+ apply plugin : " docbook-reference"
182
182
183
183
reference {
184
- sourceDir = file(' src/reference/docbook' )
184
+ sourceDir = file(" src/reference/docbook" )
185
185
}
186
186
187
187
// don't publish the default jar for the root project
@@ -192,8 +192,8 @@ configure(rootProject) {
192
192
}
193
193
194
194
task api(type : Javadoc ) {
195
- group = ' Documentation'
196
- description = ' Generates aggregated Javadoc API documentation.'
195
+ group = " Documentation"
196
+ description = " Generates aggregated Javadoc API documentation."
197
197
title = " ${ rootProject.description} ${ version} API"
198
198
199
199
dependsOn {
@@ -204,14 +204,14 @@ configure(rootProject) {
204
204
options. memberLevel = org.gradle.external.javadoc.JavadocMemberLevel . PROTECTED
205
205
options. author = true
206
206
options. header = rootProject. description
207
- options. overview = ' src/api/overview.html'
207
+ options. overview = " src/api/overview.html"
208
208
options. links(project. ext. javadocLinks)
209
209
210
210
source subprojects. collect { project ->
211
211
project. sourceSets. main. allJava
212
212
}
213
213
214
- maxMemory = ' 1024m'
214
+ maxMemory = " 1024m"
215
215
destinationDir = new File (buildDir, " api" )
216
216
217
217
doFirst {
@@ -220,38 +220,38 @@ configure(rootProject) {
220
220
}
221
221
222
222
task docsZip(type : Zip ) {
223
- group = ' Distribution'
224
- classifier = ' docs'
223
+ group = " Distribution"
224
+ classifier = " docs"
225
225
description = " Builds -${ classifier} archive containing api and reference " +
226
226
" for deployment at static.springframework.org/spring-android/docs."
227
227
228
- from(' src/dist' ) {
229
- include ' changelog.txt'
228
+ from(" src/dist" ) {
229
+ include " changelog.txt"
230
230
}
231
231
232
232
from (api) {
233
- into ' api'
233
+ into " api"
234
234
}
235
235
236
236
from (reference) {
237
- into ' reference'
237
+ into " reference"
238
238
}
239
239
}
240
240
241
241
task distZip(type : Zip , dependsOn : docsZip) {
242
- group = ' Distribution'
243
- classifier = ' dist'
242
+ group = " Distribution"
243
+ classifier = " dist"
244
244
description = " Builds -${ classifier} archive, containing all jars and docs, " +
245
245
" suitable for community download page."
246
246
247
247
def baseDir = " ${ project.name} -${ project.version} "
248
248
249
- from(' src/dist' ) {
250
- include ' readme.txt'
251
- include ' license.txt'
252
- include ' notice.txt'
249
+ from(" src/dist" ) {
250
+ include " readme.txt"
251
+ include " license.txt"
252
+ include " notice.txt"
253
253
into " ${ baseDir} "
254
- expand(copyright : new Date (). format(' yyyy' ), version : project. version)
254
+ expand(copyright : new Date (). format(" yyyy" ), version : project. version)
255
255
}
256
256
257
257
from(zipTree(docsZip. archivePath)) {
@@ -261,10 +261,10 @@ configure(rootProject) {
261
261
subprojects. each { subproject ->
262
262
into (" ${ baseDir} /libs" ) {
263
263
from subproject. jar
264
- if (subproject. tasks. findByPath(' sourcesJar' )) {
264
+ if (subproject. tasks. findByPath(" sourcesJar" )) {
265
265
from subproject. sourcesJar
266
266
}
267
- if (subproject. tasks. findByPath(' javadocJar' )) {
267
+ if (subproject. tasks. findByPath(" javadocJar" )) {
268
268
from subproject. javadocJar
269
269
}
270
270
}
@@ -277,24 +277,24 @@ configure(rootProject) {
277
277
}
278
278
279
279
task wrapper(type : Wrapper ) {
280
- gradleVersion = ' 1.11'
280
+ gradleVersion = " 1.11"
281
281
}
282
282
}
283
283
284
284
task updateRootDocs {
285
285
copy {
286
- from ' src/dist'
286
+ from " src/dist"
287
287
into " ${ rootProject.projectDir} "
288
- include ' notice.txt'
289
- expand(copyright : new Date (). format(' yyyy' ), version : project. version)
290
- rename { filename -> ' NOTICE' }
288
+ include " notice.txt"
289
+ expand(copyright : new Date (). format(" yyyy" ), version : project. version)
290
+ rename { filename -> " NOTICE" }
291
291
}
292
292
293
293
copy {
294
- from ' src/dist'
294
+ from " src/dist"
295
295
into " ${ rootProject.projectDir} "
296
- include ' license.txt'
297
- rename { filename -> ' LICENSE' }
296
+ include " license.txt"
297
+ rename { filename -> " LICENSE" }
298
298
}
299
299
}
300
300
0 commit comments