Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 235 lines (185 sloc) 7.205 kb
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
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
3 buildscript {
4 repositories {
eea1b10 @jeffbrown use repo.grails.org/grails/core instead of repo.gradle.org/gradle/grails
jeffbrown authored
5 mavenRepo(urls: "http://repo.grails.org/grails/core")
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
6 }
7 dependencies {
8 classpath "commons-io:commons-io:1.4"
9 }
10 }
11
3e17890 1.1 branch is now trunk
graeme authored
12
620b896 @graemerocher added code to load log4j.properties only if it exists, add ehcache as…
graemerocher authored
13 apply plugin: 'idea'
14
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
15 grailsVersion = '1.4.0.BUILD-SNAPSHOT'
6e6725a @jeffbrown upgrade to ant 1.8.2 and remove ant-nodeps
jeffbrown authored
16 antVersion = "1.8.2"
d1830dd @jeffbrown use ant-trax version 1.7.1 not 1.8.1. this dependency is pending inve…
jeffbrown authored
17 antTraxVersion = "1.7.1"
1f7bb17 @graemerocher initial work migrating GORM for Hibernate to datastore APIs
graemerocher authored
18 springVersion = "3.0.5.RELEASE"
606bbfc @graemerocher removed hard coded agent version and used shared version number
graemerocher authored
19 springLoadedVersion = "0.8.0.BUILD-SNAPSHOT"
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
20 ivyVersion = "2.2.0"
c6b3b66 @jeffbrown GRAILS-7477 - upgrade to Gant 1.9.5
jeffbrown authored
21 gantVersion = "1.9.5"
37879dc @jeffbrown use groovy 1.8.0
jeffbrown authored
22 groovyVersion = "1.8.0"
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
23
6aa944b @graemerocher some more fixes and tweaks
graemerocher authored
24 archivesBaseName = 'grails'
25 version = grailsVersion
76e9d1a @graemerocher fixes to building of 'grails-scripts' jar
graemerocher authored
26
305746b @pledbrook Groovy was not appearing as a dependency in the artifacts' POMs, so i…
pledbrook authored
27 // Groovy is added as a dependency to both the 'groovy' and 'compile'
28 // configurations, so place the dependency in a shared variable. The
29 // 'compile' is required so that Groovy appears as a dependency in the
30 // artifacts' POMs.
31 if(System.getProperty('groovy.jar')) {
32 groovyDependency = files(System.getProperty('groovy.jar'))
33 } else {
34 groovyDependency = "org.codehaus.groovy:groovy-all:${groovyVersion}"
35 }
36
76e9d1a @graemerocher fixes to building of 'grails-scripts' jar
graemerocher authored
37
6d7b0f8 @graemerocher enhanced the gradle install command to also install into GRAILS_HOME/…
graemerocher authored
38 subprojects { project ->
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
39 apply plugin: 'groovy'
40 apply plugin: 'maven'
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
41 apply plugin: 'eclipse'
42 apply plugin: 'idea'
c434df7 @graemerocher some fixes to the tests, removed redundant IML file
graemerocher authored
43
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
44 sourceCompatibility = "1.5"
45 targetCompatibility = "1.5"
46 archivesBaseName = 'grails'
47 version = grailsVersion
445ba27 @graemerocher applied correct group id
graemerocher authored
48 group = "org.grails"
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
49
50 manifest.mainAttributes(
51 "Built-By": System.properties['user.name'],
52 "Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
53 "Implementation-Title": "Grails",
6e6725a @jeffbrown upgrade to ant 1.8.2 and remove ant-nodeps
jeffbrown authored
54 "Ant-Version": 'Apache Ant 1.8.2', // todo we just have this property to make it easy to compare manifests. Remove it when this build is life
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
55 "Implementation-Version": grailsVersion,
56 "Implementation-Vendor": 'grails.org')
57
faafb32 @graemerocher fixed merged changes in build.gradle
graemerocher authored
58
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
59 configure([compileGroovy, compileTestGroovy]) {
60 groovyOptions.fork(memoryInitialSize: '128M', memoryMaximumSize: '1G')
61 groovyOptions.encoding = "UTF-8"
62 }
63
64 configure([compileJava, compileTestJava]) {
65 options.deprecation = true
66 options.debug = true
67 }
68
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
69
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
70 repositories {
eea1b10 @jeffbrown use repo.grails.org/grails/core instead of repo.gradle.org/gradle/grails
jeffbrown authored
71
72 mavenRepo(urls: "http://repo.grails.org/grails/core") {
30aed72 @hansd Added snapshot timeout property
hansd authored
73 if (project.hasProperty('snapshotTimeout')) {
74 setSnapshotTimeout(Long.parseLong(project.snapshotTimeout))
75
76 }
77 }
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
78 }
e1110b5 @hansd Changed build to use a virtual repository at repo.gradle.org.
hansd authored
79
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
80 dependencies {
81 // Groovy
305746b @pledbrook Groovy was not appearing as a dependency in the artifacts' POMs, so i…
pledbrook authored
82 groovy groovyDependency
83 compile groovyDependency
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
84
85 // Jars in lib
86 compile files(fileTree(dir:"$projectDir/src/libs" as File))
87
88
89 compile 'commons-beanutils:commons-beanutils:1.8.0',
90 'commons-cli:commons-cli:1.0',
91 'commons-codec:commons-codec:1.4',
92 'commons-collections:commons-collections:3.2.1',
93 'commons-io:commons-io:1.4',
94 'commons-lang:commons-lang:2.4',
95 'commons-validator:commons-validator:1.3.1'
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
96 // Apache Commons
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
97
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
98 // Others
99 runtime( 'cglib:cglib-nodep:2.1_3')
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
100
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
101 compile 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.1_jdk5'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
102
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
103 runtime 'aopalliance:aopalliance:1.0',
104 'org.aspectj:aspectjrt:1.6.10',
105 'org.aspectj:aspectjweaver:1.6.10',
106 'net.sf.ehcache:ehcache-core:2.3.1'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
107
108
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
109 // XML
110 runtime 'xalan:serializer:2.7.1'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
111
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
112 // Logging
113 compile 'log4j:log4j:1.2.16'
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
114 compile 'org.slf4j:slf4j-api:1.6.1'
115 compile 'org.slf4j:jcl-over-slf4j:1.6.1'
116
117 runtime'org.slf4j:slf4j-log4j12:1.6.1'
118 runtime 'org.slf4j:jul-to-slf4j:1.6.1'
3c979ce @graemerocher moved logging plugin into separate project
graemerocher authored
119
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
120
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
121 // Specs
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
122 compile 'javax.servlet:servlet-api:2.5'
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
123 compile 'javax.transaction:jta:1.1'
2a525be @graemerocher upgrade to Hibernate 3.6
graemerocher authored
124 compile 'org.hibernate.java-persistence:jpa-api:2.0-cr-1'
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
125
126 // Spring
127
128 compile "org.springframework:spring-aop:${springVersion}",
129 "org.springframework:spring-asm:${springVersion}",
130 "org.springframework:spring-aspects:${springVersion}",
131 "org.springframework:spring-beans:${springVersion}",
132 "org.springframework:spring-context:${springVersion}",
133 "org.springframework:spring-core:${springVersion}",
134 "org.springframework:spring-expression:${springVersion}",
135 "org.springframework:spring-instrument:${springVersion}",
136 "org.springframework:spring-jdbc:${springVersion}",
137 "org.springframework:spring-jms:${springVersion}",
138 "org.springframework:spring-orm:${springVersion}",
139 "org.springframework:spring-oxm:${springVersion}",
140 "org.springframework:spring-test:${springVersion}",
141 "org.springframework:spring-tx:${springVersion}",
142 "org.springframework:spring-web:${springVersion}",
143 "org.springframework:spring-webmvc:${springVersion}"
144
145 // Testing
146 testCompile 'junit:junit:4.8.1'
352b29e @graemerocher add spock to test compile path
graemerocher authored
147 testCompile('org.spockframework:spock-core:0.5-groovy-1.8') {
148 transitive = false
149 }
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
150
151 }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
152
6d7b0f8 @graemerocher enhanced the gradle install command to also install into GRAILS_HOME/…
graemerocher authored
153 install.doLast {
154 copy {
155 from(project.libsDir) {
156 include "*-${grailsVersion}.jar"
157 }
158 into "${rootProject.projectDir}/dist"
159 }
160 }
c5307d6 @graemerocher test exclude patterns
graemerocher authored
161
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
162 test {
163 excludes = ["**/*TestCase.class", "**/*\$*.class"]
164 }
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
165
166 task sourcesJar(type: Jar, dependsOn:classes) {
167 classifier = 'sources'
168 appendix = project.name[7..-1]
169 from sourceSets.main.allSource
170 }
171
172 task javadocJar(type: Jar, dependsOn:javadoc) {
173 classifier = 'javadoc'
174 appendix = project.name[7..-1]
175 from javadoc.destinationDir
176 }
177
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored
178 configurations {
179 meta
180 }
181
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
182 artifacts {
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored
183 meta sourcesJar
184 meta javadocJar
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
185 }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
186 }
187
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
188
189 apply {
7d0dc76 @graemerocher Fixed generation of documentation
graemerocher authored
190 from 'gradle/docs.gradle'
4ec3a5a @jeffbrown GRAILS-6596 - upgrade to gradle 0.9-rc-1
jeffbrown authored
191 from 'gradle/assemble.gradle'
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
192 }
193
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
194 task clean << {
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored
195 // add additional dirs
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
196 // delete(docs.destinationDir, libs.destinationDir)
197 delete(libs.destinationDir)
198 delete(buildDir)
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored
199 }
200
ea7c286 @graemerocher integrated reloading agent with GrailsPluginManager reload events mec…
graemerocher authored
201 task installResources << {
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
202 copy {
203 from('src/resources/tests')
204 into('lib')
205 filter(ReplaceTokens, tokens: ['grails.version': grailsVersion])
206 }
207
208 copy {
209 from("src/resources/bash")
210 filter(ReplaceTokens, tokens: ['grails.version': grailsVersion])
211 filter(ReplaceTokens, tokens: ['groovy.version': groovyVersion])
606bbfc @graemerocher removed hard coded agent version and used shared version number
graemerocher authored
212 filter(ReplaceTokens, tokens: ['spring.loaded.version': springLoadedVersion])
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
213 fileMode = 0755
214 into "bin"
215
216 }
187d198 @jeffbrown chmod 755 all of the files in the bin/ dir when executing the install…
jeffbrown authored
217 // the fileMode property above should take care of the chmod work, but
218 // it doesn't per http://jira.codehaus.org/browse/GRADLE-971
219 ant.chmod(dir: 'bin', perm: '755', includes: '*')
ea7c286 @graemerocher integrated reloading agent with GrailsPluginManager reload events mec…
graemerocher authored
220
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
221 copy {
222 from("src/resources/conf")
223 into "conf"
224 filter(ReplaceTokens, tokens: ['grails.version': grailsVersion])
225 filter(ReplaceTokens, tokens: ['groovy.version': groovyVersion])
226 filter(ReplaceTokens, tokens: ['ant.version': antVersion])
227 filter(ReplaceTokens, tokens: ['gant.version': gantVersion])
228 filter(ReplaceTokens, tokens: ['ivy.version': ivyVersion])
229 }
230 }
231
232
ea7c286 @graemerocher integrated reloading agent with GrailsPluginManager reload events mec…
graemerocher authored
233 task install(dependsOn:[populateDependencies, installResources])
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
234 task assemble(dependsOn:zipDist)
Something went wrong with that request. Please try again.