Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 154 lines (128 sloc) 5.869 kb
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
1 /*
2 * Copyright 2010 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
16 import org.springframework.build.Version
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
17
18 // -----------------------------------------------------------------------------
09905ab Cleaned out old non-Gowalla stuff
Craig Walls authored
19 // Main gradle build file for Spring Social Gowalla
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
20 // @author Chris Beams
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
21 // @author Craig Walls
22 // -----------------------------------------------------------------------------
23
24 // -----------------------------------------------------------------------------
25 // Configuration for the root project
26 // -----------------------------------------------------------------------------
09905ab Cleaned out old non-Gowalla stuff
Craig Walls authored
27 description = 'Spring Social Gowalla'
28 abbreviation = 'SOCIAL-GOWALLA'
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
29
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
30 apply plugin: 'base'
31 apply plugin: 'idea'
32
33 def buildSrcDir = "$rootDir/buildSrc"
34 apply from: "$buildSrcDir/wrapper.gradle"
35 apply from: "$buildSrcDir/maven-root-pom.gradle"
36
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
37 // -----------------------------------------------------------------------------
38 // Configuration for all projects including this one (the root project)
39 //
40 // @see settings.gradle for list of all subprojects
41 // -----------------------------------------------------------------------------
42 allprojects {
43 // group will translate to groupId during pom generation and deployment
44 group = 'org.springframework.social'
45
46 // version will be used in maven pom generation as well as determining
47 // where artifacts should be deployed, based on release type of snapshot,
48 // milestone or release.
49 // @see org.springframework.build.Version under buildSrc/ for more info
50 // @see gradle.properties for the declaration of this property.
09905ab Cleaned out old non-Gowalla stuff
Craig Walls authored
51 version = new Version(springSocialGowallaVersion)
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
52
53 // default set of maven repositories to be used when resolving dependencies
54 repositories {
55 mavenRepo urls: 'http://maven.springframework.org/release'
56 mavenRepo urls: 'http://maven.springframework.org/milestone'
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
57 mavenRepo urls: 'http://maven.springframework.org/snapshot'
58 mavenCentral()
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
59 }
60 }
61
62
63 // -----------------------------------------------------------------------------
64 // Create collections of subprojects - each will receive their own configuration
65 // - all subprojects that start with spring-social-* are 'java projects'
66 // - documentation-related subprojects are not collected here
67 //
68 // @see configure(*) sections below
69 // -----------------------------------------------------------------------------
70
71 javaprojects = subprojects.findAll { project ->
72 project.path.startsWith(':spring-social-')
73 }
74
75 // -----------------------------------------------------------------------------
76 // Configuration for all java subprojects
77 // -----------------------------------------------------------------------------
78 configure(javaprojects) {
79
80 apply plugin: 'java' // tasks for conventional java lifecycle
81 apply plugin: 'maven' // `gradle install` to push jars to local .m2 cache
82 apply plugin: 'eclipse' // `gradle eclipse` to generate .classpath/.project
83 apply plugin: 'idea' // `gradle idea` to generate .ipr/.iml
84
85 // set up dedicated directories for jars and source jars.
86 // this makes it easier when putting together the distribution
87 libsBinDir = new File(libsDir, 'bin')
88 libsSrcDir = new File(libsDir, 'src')
89
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
90 // add tasks for creating source jars and generating poms etc
91 apply from: "$buildSrcDir/maven-deployment.gradle"
92
93 // add tasks for finding and publishing .xsd files
94 apply from: "$buildSrcDir/schema-publication.gradle"
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
95
09905ab Cleaned out old non-Gowalla stuff
Craig Walls authored
96 springSocialVersion = '1.0.0.BUILD-SNAPSHOT'
da7af28 Updated Jackson dependency version
Craig Walls authored
97 jacksonVersion = '1.8.3'
0330595 updated dependencies
Keith Donald authored
98 junitVersion = '4.8.2'
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
99 mockitoVersion = '1.8.5'
294b326 Updated to Spring 3.1.0.M2
Craig Walls authored
100 springVersion = '3.1.0.M2'
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
101
3551c32 Fixed broken test resource problem introduced in a previous commit. Rena...
Craig Walls authored
102 sourceSets {
8ee1112 polish
Keith Donald authored
103 main {
104 resources {
105 srcDirs = ['src/main/java']
106 }
107 }
3551c32 Fixed broken test resource problem introduced in a previous commit. Rena...
Craig Walls authored
108 test {
109 resources {
8ee1112 polish
Keith Donald authored
110 srcDirs = ['src/test/java']
3551c32 Fixed broken test resource problem introduced in a previous commit. Rena...
Craig Walls authored
111 }
112 }
113 }
114
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
115 // dependencies that are common across all java projects
116 dependencies {
117 testCompile "junit:junit:$junitVersion"
118 testCompile "org.mockito:mockito-all:$mockitoVersion"
119 testCompile "org.springframework:spring-test:$springVersion"
120 }
121
122 // enable all compiler warnings (GRADLE-1077)
123 [compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all']
124
125 // generate .classpath files without GRADLE_CACHE variable (GRADLE-1079)
126 eclipseClasspath.variables = [:]
127 }
128
129
130 // -----------------------------------------------------------------------------
131 // Configuration for each individual core java subproject
132 //
133 // @see configure(javaprojects) above for general config
134 // -----------------------------------------------------------------------------
9ec997c First pass at connect work.
Craig Walls authored
135
2b98d30 Changes to ConnectController and ServiceProvider to support OAuth2 web s...
Craig Walls authored
136 project('spring-social-gowalla') {
052b905 renamed social client to social core; several other updates
Keith Donald authored
137 description = 'Gowalla API'
2b98d30 Changes to ConnectController and ServiceProvider to support OAuth2 web s...
Craig Walls authored
138 dependencies {
09905ab Cleaned out old non-Gowalla stuff
Craig Walls authored
139 compile "org.springframework.social:spring-social-core:$springSocialVersion"
140 compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
141 testCompile "org.springframework.social:spring-social-test:$springSocialVersion"
f8fec0c Moved RestTemplate mock server test framework into its own module
Craig Walls authored
142 }
143 }
144
57948a7 Tweaked build to use new shared gradle build module
Craig Walls authored
145 // -----------------------------------------------------------------------------
146 // Configuration for the docs subproject
147 // -----------------------------------------------------------------------------
148 project('docs') {
149 apply from: "$buildSrcDir/docs.gradle"
150 }
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
151
a7e0f6a Cleaned out old Gradle build stuff.
Craig Walls authored
152 apply from: "$buildSrcDir/dist.gradle"
153 apply from: "$buildSrcDir/checks.gradle"
Something went wrong with that request. Please try again.