Skip to content
Newer
Older
100644 366 lines (310 sloc) 11.6 KB
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored Feb 28, 2011
1 import org.apache.tools.ant.filters.ReplaceTokens
2
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored Jan 11, 2010
3 buildscript {
4 repositories {
b2580ee @alkemist [build] Update repos to use new dsl
alkemist authored Dec 10, 2011
5 maven { url "http://repo.grails.org/grails/core" }
b298314 @lhotari GRAILS-8052 Updated Junit to 4.9 version. Excluded transient dependen…
lhotari authored Sep 21, 2011
6 //mavenRepo(urls: 'http://evgeny-goldin.org/artifactory/repo/')
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored Jan 11, 2010
7 }
8 dependencies {
7622fd4 @lhotari GRAILS-8052: commons-io -> 2.1
lhotari authored Oct 13, 2011
9 classpath "commons-io:commons-io:2.1"
b298314 @lhotari GRAILS-8052 Updated Junit to 4.9 version. Excluded transient dependen…
lhotari authored Sep 21, 2011
10 //classpath "com.goldin.plugins:gradle:0.1-RC3" // http://evgeny-goldin.com/wiki/Gradle-duplicates-plugin
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored Jan 11, 2010
11 }
12 }
13
620b896 @graemerocher added code to load log4j.properties only if it exists, add ehcache as…
graemerocher authored Feb 24, 2011
14 apply plugin: 'idea'
15
4cddf45 @graemerocher make servlet-api a provided dependency in the POM
graemerocher authored Jan 14, 2013
16 ext.optionalDeps = []
17 ext.providedDeps = []
18
19 ext.provided = { providedDeps << it }
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
20 ext {
585153f @jeffbrown version 2.3.0.BUILD-SNAPSHOT
jeffbrown authored Sep 19, 2012
21 grailsVersion = '2.3.0.BUILD-SNAPSHOT'
90bcf95 @alkemist [build] Only require artifact signing if we are uploading non snapsho…
alkemist authored Apr 13, 2012
22 isBuildSnapshot = grailsVersion.endsWith(".BUILD-SNAPSHOT")
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
23 antTraxVersion = "1.7.1"
71f495f @bobbywarner Updated SLF4J and Ant Versions
bobbywarner authored Nov 14, 2012
24 antVersion = "1.8.4"
7a101f2 @bobbywarner Upgraded AspectJ Version
bobbywarner authored Nov 27, 2012
25 aspectjVersion = "1.7.1"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
26 commonsBeanUtilsVersion = "1.8.3"
27 commonsCliVersion = "1.2"
28 commonsCollectionsVersion = "3.2.1"
29 commonsIOVersion = "2.1"
30 commonsLangVersion = "2.6"
e8abbaf @graemerocher fix handling of Servlet version so that you don't have to configure i…
graemerocher authored Mar 13, 2013
31 datastoreVersion = "2.0.0.BUILD-SNAPSHOT"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
32 gantVersion = "1.9.6"
33 gdocEngineVersion = "1.0.1"
28d6dee @graemerocher upgrade to Groovy 2.1.1
graemerocher authored Feb 18, 2013
34 groovyVersion = "2.1.1"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
35 gradleGroovyVersion = groovyVersion
36 gradleGroovyVersion = "1.8.2"
37 ivyVersion = "2.2.0"
38 jansiVersion = "1.2.1"
39 jlineVersion = "1.0"
40 jnaVersion = "3.2.3"
71f495f @bobbywarner Updated SLF4J and Ant Versions
bobbywarner authored Nov 14, 2012
41 slf4jVersion = "1.7.2"
133cfbb @graemerocher Merge branch '2.1.x' into 2.2.x
graemerocher authored Oct 23, 2012
42
106996c @jeffbrown use spock :0.7-groovy-2.0
jeffbrown authored Oct 12, 2012
43 spockVersion = '0.7-groovy-2.0'
3b77be4 @jeffbrown use springloaded 1.1.1
jeffbrown authored Dec 11, 2012
44 springLoadedVersion = "1.1.1"
39c5f49 @smaldini GRAILS-9674 Reapply Jeff fixes to upgrade Spring to 3.2.0.RELEASE
smaldini authored Jan 23, 2013
45 springVersion = "3.2.0.RELEASE"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
46 springWebflowVersion= "2.0.8.RELEASE"
c1cba66 @graemerocher upgrade to hibernate 3.6.10
graemerocher authored Mar 29, 2012
47 hibernateVersion = "3.6.10.Final"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
48 ehcacheVersion = "2.4.6"
d666cdf @jeffbrown Revert "Upgraded JUnit Version"
jeffbrown authored Dec 13, 2012
49 junitVersion = "4.10"
6dfab1a @graemerocher Changes to support fix for GRAILS-9637 "Grails Unit Tests using the n…
graemerocher authored Feb 15, 2013
50 concurrentlinkedhashmapVersion = "1.3.1"
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
51 }
52
6aa944b @graemerocher some more fixes and tweaks
graemerocher authored Feb 23, 2011
53 version = grailsVersion
76e9d1a @graemerocher fixes to building of 'grails-scripts' jar
graemerocher authored Feb 22, 2011
54
45f82bf @jeffbrown arrange for most directories which are created during a build to be d…
jeffbrown authored Aug 24, 2011
55 // directories created during the build which are related
56 // to turning the workspace root into a GRAILS_HOME
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
57 ext {
93c76fc @graemerocher don't use unique version for jars, flatten the home directory to avoi…
graemerocher authored Jan 4, 2013
58 distInstallDir = file("$buildDir/dist-tmp")
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
59 homeDistDir = file("dist")
60 homeBinDir = file("bin")
61 homeConfDir = file("conf")
62 homeDslSupportDir = file("dsl-support")
63 homeLibDir = file("lib")
64 homeSrcDir = file("src")
65 }
45f82bf @jeffbrown arrange for most directories which are created during a build to be d…
jeffbrown authored Aug 25, 2011
66
305746b @pledbrook Groovy was not appearing as a dependency in the artifacts' POMs, so i…
pledbrook authored Mar 4, 2011
67 // Groovy is added as a dependency to both the 'groovy' and 'compile'
68 // configurations, so place the dependency in a shared variable. The
69 // 'compile' is required so that Groovy appears as a dependency in the
70 // artifacts' POMs.
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
71 ext.jointBuildGroovyJarProperty = System.getProperty('groovy.jar')
72 ext.groovyDependency = null
6f0c9bc @alkemist [build] Simplified management of Groovy jar WRT grails/groovy joint b…
alkemist authored Dec 23, 2011
73 if (jointBuildGroovyJarProperty) {
74 jointBuildGroovyJar = file(jointBuildGroovyJarProperty)
75 if (jointBuildGroovyJar.exists()) {
76 groovyDependency = dependencies.create(files(jointBuildGroovyJar))
77 } else {
78 throw new GradleException("The groovy.jar system property points to ${jointBuildGroovyJar.absolutePath} which does not exist.")
3ae39a1 @jeffbrown Improve the handling of the groovy.jar system property
jeffbrown authored Dec 23, 2011
79 }
305746b @pledbrook Groovy was not appearing as a dependency in the artifacts' POMs, so i…
pledbrook authored Mar 4, 2011
80 } else {
6f0c9bc @alkemist [build] Simplified management of Groovy jar WRT grails/groovy joint b…
alkemist authored Dec 23, 2011
81 groovyDependency = dependencies.create("org.codehaus.groovy:groovy-all:${groovyVersion}") {
82 exclude module:"commons-cli"
83 exclude module:"ant"
84 }
b5edff2 @alkemist First cut at upgrading to Gradle 1.0-milestone-6.
alkemist authored Dec 9, 2011
85 }
5dc34a6 @alkemist [build] fix for sources jar task
alkemist authored Dec 11, 2011
86
87 allprojects {
88 repositories {
89 maven { url "http://repo.grails.org/grails/core" }
90 }
91
92 configurations {
93 all {
94 resolutionStrategy {
e8abbaf @graemerocher fix handling of Servlet version so that you don't have to configure i…
graemerocher authored Mar 13, 2013
95 def cacheHours = isCiBuild ? 0 : 24
96 cacheDynamicVersionsFor cacheHours, 'hours'
97 cacheChangingModulesFor cacheHours, 'hours'
5dc34a6 @alkemist [build] fix for sources jar task
alkemist authored Dec 11, 2011
98 }
99 }
100 }
101 }
102
57dee89 @alkemist Improve the idea metadata generation by the build system.
alkemist authored Oct 24, 2012
103 apply from: "gradle/idea.gradle"
744e0ab @alkemist [build] Let IDEA know this is a Git project.
alkemist authored Apr 14, 2012
104
6d7b0f8 @graemerocher enhanced the gradle install command to also install into GRAILS_HOME/…
graemerocher authored Feb 22, 2011
105 subprojects { project ->
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored Feb 16, 2011
106 apply plugin: 'groovy'
107 apply plugin: 'maven'
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored Feb 23, 2011
108 apply plugin: 'eclipse'
109 apply plugin: 'idea'
c1535be @graemerocher re-organization of dependency definitions so only the subprojects tha…
graemerocher authored May 16, 2011
110 apply plugin: 'project-report'
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
111 apply plugin: 'signing'
b298314 @lhotari GRAILS-8052 Updated Junit to 4.9 version. Excluded transient dependen…
lhotari authored Sep 21, 2011
112 //apply plugin: 'duplicates'
c434df7 @graemerocher some fixes to the tests, removed redundant IML file
graemerocher authored Feb 22, 2011
113
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
114 sourceCompatibility = "1.5"
115 targetCompatibility = "1.5"
f7c5882 @graemerocher Aether: simplify GrailsCoreDependencies so that only the grails core …
graemerocher authored Jan 7, 2013
116 // archivesBaseName = 'grails'
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
117 version = grailsVersion
4a69917 @burtbeckwith whitespace, STS warnings, etc.
burtbeckwith authored May 27, 2011
118 group = "org.grails"
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
119
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
120 ext.isCiBuild = project.hasProperty("isCiBuild")
4881bcf @alkemist [build] Update build to use new cache ttl api in Gradle.
alkemist authored Dec 10, 2011
121
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
122 manifest.mainAttributes(
123 "Built-By": System.properties['user.name'],
124 "Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
125 "Implementation-Title": "Grails",
126 "Implementation-Version": grailsVersion,
127 "Implementation-Vendor": 'grails.org')
128
faafb32 @graemerocher fixed merged changes in build.gradle
graemerocher authored Feb 22, 2011
129
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored Feb 23, 2011
130 configure([compileGroovy, compileTestGroovy]) {
131 groovyOptions.fork(memoryInitialSize: '128M', memoryMaximumSize: '1G')
132 groovyOptions.encoding = "UTF-8"
380f9c9 @jeffbrown gradle useAnt=true
jeffbrown authored Jun 28, 2012
133 groovyOptions.useAnt = true
d9d9a1d @graemerocher Initial cut of forked compilation, currently only for sources not tes…
graemerocher authored Jan 23, 2013
134 groovyOptions.stacktrace = true
380f9c9 @jeffbrown gradle useAnt=true
jeffbrown authored Jun 29, 2012
135 options.useAnt = true
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored Feb 23, 2011
136 }
137
138 configure([compileJava, compileTestJava]) {
139 options.deprecation = true
140 options.debug = true
141 }
142
4dc4a3e @hauner make javdoc read/write utf-8 & add meta tag with utf-8
hauner authored Jan 13, 2013
143 configure([javadoc]) {
144 options.encoding "UTF-8"
145 options.docEncoding "UTF-8"
146 options.charSet "UTF-8"
147 }
148
744e0ab @alkemist [build] Let IDEA know this is a Git project.
alkemist authored Apr 14, 2012
149 idea {
150 module.iml.whenMerged { module ->
151 // adding slf4j-simple with scope TEST to .iml
152 module.dependencies << new org.gradle.plugins.ide.idea.model.ModuleLibrary(
153 [new org.gradle.plugins.ide.idea.model.Path("jar://\$GRADLE_USER_HOME/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-${slf4jVersion}.jar!/")], [], [], [], "TEST"
154 )
155 }
fb0aaf0 @sarmbruster injecting slf4j-simple library into generated IntelliJ idea module fi…
sarmbruster authored Jul 28, 2011
156 }
24a5b17 @graemerocher fix failing build
graemerocher authored Feb 18, 2013
157 repositories {
158 if(!isCiBuild) {
159 mavenLocal()
160 }
161 }
e1110b5 @hansd Changed build to use a virtual repository at repo.gradle.org.
hansd authored Apr 1, 2011
162
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
163 dependencies {
6f0c9bc @alkemist [build] Simplified management of Groovy jar WRT grails/groovy joint b…
alkemist authored Dec 23, 2011
164 groovy groovyDependency
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
165
09d25f0 @pledbrook Add Gradle tasks for gdoc publishing.
pledbrook authored Nov 18, 2011
166 if (project.name != "grails-docs") {
167 // Logging
168 compile "org.slf4j:slf4j-api:$slf4jVersion"
169 compile "org.slf4j:jcl-over-slf4j:$slf4jVersion"
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored Feb 16, 2011
170
09d25f0 @pledbrook Add Gradle tasks for gdoc publishing.
pledbrook authored Nov 18, 2011
171 // Specs
f7c5882 @graemerocher Aether: simplify GrailsCoreDependencies so that only the grails core …
graemerocher authored Jan 7, 2013
172 // compile 'javax.servlet:javax.servlet-api:3.0.1'
173 // compile 'org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final'
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
174
175
09d25f0 @pledbrook Add Gradle tasks for gdoc publishing.
pledbrook authored Nov 18, 2011
176 // Testing
177 testCompile "junit:junit:${junitVersion}"
106996c @jeffbrown use spock :0.7-groovy-2.0
jeffbrown authored Oct 12, 2012
178 testCompile("org.spockframework:spock-core:${spockVersion}") {
09d25f0 @pledbrook Add Gradle tasks for gdoc publishing.
pledbrook authored Nov 18, 2011
179 transitive = false
180 }
352b29e @graemerocher add spock to test compile path
graemerocher authored Mar 1, 2011
181 }
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
182 }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored Feb 16, 2011
183
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored Feb 24, 2011
184 test {
185 excludes = ["**/*TestCase.class", "**/*\$*.class"]
186 }
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored Feb 23, 2011
187
3eef48f @alkemist Don't compile the project just to create a source jar.
alkemist authored Nov 27, 2011
188 task sourcesJar(type: Jar) {
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored Feb 23, 2011
189 classifier = 'sources'
190 from sourceSets.main.allSource
191 }
192
193 task javadocJar(type: Jar, dependsOn:javadoc) {
194 classifier = 'javadoc'
195 from javadoc.destinationDir
196 }
197
4a69917 @burtbeckwith whitespace, STS warnings, etc.
burtbeckwith authored May 27, 2011
198 groovydoc.doLast {
199 delete("${buildDir}/tmp")
200 }
a9878e1 @graemerocher cleanup tmp directory after groovydoc task and increase permgen to fi…
graemerocher authored May 13, 2011
201
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored Apr 5, 2011
202 configurations {
203 meta
a624cc1 @alkemist Added a new configuration “published” that extends “archives” and “me…
alkemist authored Aug 25, 2011
204 published.extendsFrom archives, meta
7f8c0ff @alkemist whitespace
alkemist authored Oct 20, 2011
205 all*.exclude group:'commons-logging', module: 'commons-logging'
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored Apr 5, 2011
206 }
207
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored Feb 23, 2011
208 artifacts {
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
209 archives jar
92a87df @graemerocher fixes signing of javadoc/source jars
graemerocher authored Mar 19, 2012
210 archives sourcesJar
211 archives javadocJar
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored Feb 23, 2011
212 }
ee4ba5b @graemerocher Attempt 1 at Gradle to Artifactory deployment
graemerocher authored May 16, 2011
213
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
214 signing {
215 sign configurations.archives
5c6c4b7 @graemerocher update version to 2.1 rc1
graemerocher authored May 10, 2012
216 required { !isBuildSnapshot && gradle.taskGraph.hasTask(uploadPublished) }
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
217 }
218
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
219 ext {
220 poms = [project.install.repositories.mavenInstaller.pom]
221 pomModifications = []
222 modifyPom = { Closure modification -> project.pomModifications << modification }
223 }
44cca92 @alkemist Treat the “dist” dir like an m2 repository for the core jars, instead…
alkemist authored Jan 3, 2013
224
225 task installToHomeDist(type: Upload) {
226 configuration = configurations.archives
227 repositories {
228 project.poms << mavenDeployer {
93c76fc @graemerocher don't use unique version for jars, flatten the home directory to avoi…
graemerocher authored Jan 4, 2013
229 repository(url: distInstallDir.toURL())
230 uniqueVersion = false
f7c5882 @graemerocher Aether: simplify GrailsCoreDependencies so that only the grails core …
graemerocher authored Jan 7, 2013
231 pom.artifactId = project.name
44cca92 @alkemist Treat the “dist” dir like an m2 repository for the core jars, instead…
alkemist authored Jan 3, 2013
232 }.pom
233 }
234 }
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
235
44cca92 @alkemist Treat the “dist” dir like an m2 repository for the core jars, instead…
alkemist authored Jan 3, 2013
236 install.dependsOn installToHomeDist
93c76fc @graemerocher don't use unique version for jars, flatten the home directory to avoi…
graemerocher authored Jan 4, 2013
237 install.doLast {
238 ant.copy(todir:homeDistDir, flatten:true, includeEmptyDirs:false) {
239 fileset dir:distInstallDir
240 }
241 }
242
a624cc1 @alkemist Added a new configuration “published” that extends “archives” and “me…
alkemist authored Aug 25, 2011
243 uploadPublished {
ee4ba5b @graemerocher Attempt 1 at Gradle to Artifactory deployment
graemerocher authored May 16, 2011
244 repositories {
4f91357 @graemerocher added Realm configuration for Ivy
graemerocher authored May 16, 2011
245 final url = project.version.endsWith("SNAPSHOT") ? "http://repo.grails.org/grails/libs-snapshots-local" :
246 "http://repo.grails.org/grails/libs-releases-local"
247
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
248 repositories {
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
249 project.poms << mavenDeployer {
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
250 repository(url: url) {
251 final username = project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : null
252 final password = project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : null
657e2f5 @graemerocher fixed for build error
graemerocher authored May 16, 2011
253
7995c9f @graemerocher ignoring test temporarily, as due to infrastructure issues it is not …
graemerocher authored Jun 19, 2012
254 if(username && password) {
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
255 org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Artifactory Realm", "repo.grails.org", username, password);
256 }
4f91357 @graemerocher added Realm configuration for Ivy
graemerocher authored May 16, 2011
257
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
258 authentication(userName: username, password: password)
259 }
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
260 }.pom
261 project.poms << mavenDeployer {
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
262 beforeDeployment { MavenDeployment deployment -> signPom(deployment) }
263
264 repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
44a005f @graemerocher check for existence of property before reading
graemerocher authored Mar 19, 2012
265 authentication(userName: project.hasProperty("sonatypeUsername") ? project.sonatypeUsername : null,
266 password: project.hasProperty("sonatypePassword") ? project.sonatypePassword : null)
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
267 }
268 snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
44a005f @graemerocher check for existence of property before reading
graemerocher authored Mar 19, 2012
269 authentication(userName: project.hasProperty("sonatypeUsername") ? project.sonatypeUsername : null,
270 password: project.hasProperty("sonatypePassword") ? project.sonatypePassword : null)
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
271 }
272
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
273
274 }.pom
275 }
276 }
277 }
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
278
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
279 modifyPom { pom ->
280 pom.project {
281 name 'Grails'
282 packaging 'jar'
283 description 'Grails Web Application Framework'
284 delegate.url 'http://grails.org/'
285
286 scm {
287 delegate.url 'scm:git@github.com:grails/grails-core.git'
288 connection 'scm:git@github.com:grails/grails-core.git'
289 developerConnection 'scm:git@github.com:grails/grails-core.git'
290 }
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
291
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
292 licenses {
293 license {
294 name 'The Apache Software License, Version 2.0'
295 delegate.url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
296 distribution 'repo'
297 }
298 }
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
299
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
300 developers {
301 developer {
302 id 'graemerocher'
303 name 'Graeme Rocher'
304 }
305 developer {
306 id 'jeffscottbrown'
307 name 'Jeff Brown'
aac8b64 @graemerocher support for publishing to Sonatype OSS repo
graemerocher authored Mar 19, 2012
308 }
309 }
ee4ba5b @graemerocher Attempt 1 at Gradle to Artifactory deployment
graemerocher authored May 16, 2011
310 }
311 }
0b4429a @alkemist Add modifyPom(Closure) utility to build scripts for POM fine tuning.
alkemist authored May 26, 2011
312
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
313 // Map the groovy gradle configuration to the “compile” scope in our published POMs
314 def groovyConfiguration = project.configurations.findByName("groovy")
315 if (groovyConfiguration) {
316 modifyPom {
317 it.scopeMappings.addMapping(1, groovyConfiguration, "compile")
4f41644 @alkemist Map the groovy dependency to the maven “compile” scope in our publish…
alkemist authored Oct 24, 2012
318 }
0b4429a @alkemist Add modifyPom(Closure) utility to build scripts for POM fine tuning.
alkemist authored May 26, 2011
319 }
9873bd6 @alkemist Upgrade build to Gradle m9.
alkemist authored Mar 27, 2012
320
8333442 @alkemist Instead of using a separate configuration for the agent to avoid it b…
alkemist authored Jan 10, 2012
321 // Remove any dependencies that shouldn't be included in the POM
322 modifyPom { pom ->
4cddf45 @graemerocher make servlet-api a provided dependency in the POM
graemerocher authored Jan 14, 2013
323 // respect 'optional' and 'provided' dependencies
324 optionalDeps.each { dep ->
325 pom.dependencies.find { it.artifactId == dep.name }?.optional = true
326 }
327 providedDeps.each { dep ->
328 pom.dependencies.find { it.artifactId == dep.name }?.scope = 'provided'
329 }
330
8333442 @alkemist Instead of using a separate configuration for the agent to avoid it b…
alkemist authored Jan 10, 2012
331 configurations.runtime.allDependencies.each { dependency ->
332 if (dependency.hasProperty("notInPom") && dependency.notInPom) {
333 pom.dependencies.removeAll { it.groupId == dependency.group && it.artifactId == dependency.name }
334 }
335 }
336 }
1ec2c3d @alkemist Clean up the POM modifications so that they are made to all POMs, not…
alkemist authored Jan 3, 2013
337
338 poms*.whenConfigured { pomModifications*.call(it) }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored Feb 16, 2011
339 }
340
a551f4c @alkemist Turned the clean task into a proper delete task.
alkemist authored Aug 25, 2011
341 task clean(type: Delete) {
342 delete buildDir,
343 homeBinDir,
344 homeConfDir,
345 homeDistDir,
346 homeDslSupportDir,
347 homeLibDir,
fc745d6 @alkemist Reworked the assemble type targets to be more idiomatic Gradle and cl…
alkemist authored Aug 25, 2011
348 homeSrcDir
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored Jan 19, 2010
349 }
350
f4e132e @alkemist Add a task for showing the dependencies of all projects.
alkemist authored Oct 20, 2011
351 task allDependencies(dependsOn: { subprojects*.implicitTasks*.dependencies })
352
776d3af @alkemist Self contain all of the install/dist stuff into assemble.gradle.
alkemist authored Aug 25, 2011
353 // From this point on we need the subprojects to be fully configured, so force their full evaluation
354 subprojects.each { evaluationDependsOn it.path }
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored Feb 28, 2011
355
776d3af @alkemist Self contain all of the install/dist stuff into assemble.gradle.
alkemist authored Aug 25, 2011
356 apply {
357 from 'gradle/docs.gradle' // tasks for building the documentation (e.g. user guide, javadocs)
358 from 'gradle/assemble.gradle' // tasks for creating an installation or distribution
0b0722b @lhotari Fixed findbugs task in gradle build
lhotari authored Sep 1, 2011
359 from 'gradle/findbugs.gradle'
39e7d7e @pledbrook Upgrade Spring Loaded dependency to 1.0.1.
pledbrook authored Oct 17, 2011
360 }
2074e70 @jeffbrown GRAILS-8270 - Include grails-datastore-* source jars in the distribution
jeffbrown authored Nov 26, 2011
361
051f937 @alkemist [build] Update to latest gradle snapshot, as it's slightly faster at …
alkemist authored Dec 14, 2011
362 task wrapper(type: Wrapper) {
317163b @jeffbrown generate Gradle 1.1 wrapper
jeffbrown authored Aug 17, 2012
363 gradleVersion = '1.1'
f23d350 @jeffbrown Gradle 1.0 Wrapper
jeffbrown authored Jun 28, 2012
364 jarFile = 'gradle/wrapper/gradle-wrapper.jar'
051f937 @alkemist [build] Update to latest gradle snapshot, as it's slightly faster at …
alkemist authored Dec 14, 2011
365 }
Something went wrong with that request. Please try again.