Skip to content

HTTPS clone URL

Subversion checkout URL

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