Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 234 lines (183 sloc) 7.061 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 {
30aed72 @hansd Added snapshot timeout property
hansd authored
5 mavenRepo(urls: "http://repo.gradle.org/gradle/grails")
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'
4f312a7 @jeffbrown update ant version dependency to 1.8.1
jeffbrown authored
16 antVersion = "1.8.1"
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"
20 gantVersion = "1.9.4-SNAPSHOT"
21 groovyVersion = "1.8.0-rc-1"
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",
4f312a7 @jeffbrown update ant version dependency to 1.8.1
jeffbrown authored
53 "Ant-Version": 'Apache Ant 1.8.1', // 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 {
30aed72 @hansd Added snapshot timeout property
hansd authored
70 mavenRepo(urls: "http://repo.gradle.org/gradle/grails") {
71 if (project.hasProperty('snapshotTimeout')) {
72 setSnapshotTimeout(Long.parseLong(project.snapshotTimeout))
73
74 }
75 }
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
76 }
e1110b5 @hansd Changed build to use a virtual repository at repo.gradle.org.
hansd authored
77
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
78 dependencies {
79 // Groovy
305746b @pledbrook Groovy was not appearing as a dependency in the artifacts' POMs, so i…
pledbrook authored
80 groovy groovyDependency
81 compile groovyDependency
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
82
83 // Jars in lib
84 compile files(fileTree(dir:"$projectDir/src/libs" as File))
85
86
87 compile 'commons-beanutils:commons-beanutils:1.8.0',
88 'commons-cli:commons-cli:1.0',
89 'commons-codec:commons-codec:1.4',
90 'commons-collections:commons-collections:3.2.1',
91 'commons-io:commons-io:1.4',
92 'commons-lang:commons-lang:2.4',
93 'commons-validator:commons-validator:1.3.1'
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
94 // Apache Commons
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
95
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
96 // Others
97 runtime( 'cglib:cglib-nodep:2.1_3')
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
98
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
99 compile 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.1_jdk5'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
100
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
101 runtime 'aopalliance:aopalliance:1.0',
102 'org.aspectj:aspectjrt:1.6.10',
103 'org.aspectj:aspectjweaver:1.6.10',
104 'net.sf.ehcache:ehcache-core:2.3.1'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
105
106
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
107 // XML
108 runtime 'xalan:serializer:2.7.1'
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
109
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
110 // Logging
111 compile 'log4j:log4j:1.2.16'
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
112 compile 'org.slf4j:slf4j-api:1.6.1'
113 compile 'org.slf4j:jcl-over-slf4j:1.6.1'
114
115 runtime'org.slf4j:slf4j-log4j12:1.6.1'
116 runtime 'org.slf4j:jul-to-slf4j:1.6.1'
3c979ce @graemerocher moved logging plugin into separate project
graemerocher authored
117
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
118
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
119 // Specs
43f8b19 @graemerocher moved dependencies around to actual dependent projects, this will pro…
graemerocher authored
120 compile 'javax.servlet:servlet-api:2.5'
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
121 compile 'javax.transaction:jta:1.1'
2a525be @graemerocher upgrade to Hibernate 3.6
graemerocher authored
122 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
123
124 // Spring
125
126 compile "org.springframework:spring-aop:${springVersion}",
127 "org.springframework:spring-asm:${springVersion}",
128 "org.springframework:spring-aspects:${springVersion}",
129 "org.springframework:spring-beans:${springVersion}",
130 "org.springframework:spring-context:${springVersion}",
131 "org.springframework:spring-core:${springVersion}",
132 "org.springframework:spring-expression:${springVersion}",
133 "org.springframework:spring-instrument:${springVersion}",
134 "org.springframework:spring-jdbc:${springVersion}",
135 "org.springframework:spring-jms:${springVersion}",
136 "org.springframework:spring-orm:${springVersion}",
137 "org.springframework:spring-oxm:${springVersion}",
138 "org.springframework:spring-test:${springVersion}",
139 "org.springframework:spring-tx:${springVersion}",
140 "org.springframework:spring-web:${springVersion}",
141 "org.springframework:spring-webmvc:${springVersion}"
142
143 // Testing
144 testCompile 'junit:junit:4.8.1'
352b29e @graemerocher add spock to test compile path
graemerocher authored
145 testCompile('org.spockframework:spock-core:0.5-groovy-1.8') {
146 transitive = false
147 }
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
148
149 }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
150
6d7b0f8 @graemerocher enhanced the gradle install command to also install into GRAILS_HOME/…
graemerocher authored
151 install.doLast {
152 copy {
153 from(project.libsDir) {
154 include "*-${grailsVersion}.jar"
155 }
156 into "${rootProject.projectDir}/dist"
157 }
158 }
c5307d6 @graemerocher test exclude patterns
graemerocher authored
159
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
160 test {
161 excludes = ["**/*TestCase.class", "**/*\$*.class"]
162 }
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
163
164 task sourcesJar(type: Jar, dependsOn:classes) {
165 classifier = 'sources'
166 appendix = project.name[7..-1]
167 from sourceSets.main.allSource
168 }
169
170 task javadocJar(type: Jar, dependsOn:javadoc) {
171 classifier = 'javadoc'
172 appendix = project.name[7..-1]
173 from javadoc.destinationDir
174 }
175
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored
176 configurations {
177 meta
178 }
179
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
180 artifacts {
dcb6008 @alkemist Move the javadoc and source jars onto a new gradle configuration name…
alkemist authored
181 meta sourcesJar
182 meta javadocJar
f01ceaa @graemerocher Now creating source and javadoc jar files
graemerocher authored
183 }
c9ba376 @graemerocher First steps into multi project build refactor. Moved grails-bootstrap…
graemerocher authored
184 }
185
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
186
187 apply {
7d0dc76 @graemerocher Fixed generation of documentation
graemerocher authored
188 from 'gradle/docs.gradle'
4ec3a5a @jeffbrown GRAILS-6596 - upgrade to gradle 0.9-rc-1
jeffbrown authored
189 from 'gradle/assemble.gradle'
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
190 }
191
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
192 task clean << {
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored
193 // add additional dirs
c2c3421 @graemerocher the root project is no longer a groovy project, custom assemble task …
graemerocher authored
194 // delete(docs.destinationDir, libs.destinationDir)
195 delete(libs.destinationDir)
196 delete(buildDir)
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored
197 }
198
ef7d40c @graemerocher created subproject for grails-scripts that compiles from the root pro…
graemerocher authored
199 task install(dependsOn:[populateDependencies])
477e4a4 @graemerocher add install task to root that installs the scripts jar and populates …
graemerocher authored
200
4e9c9f1 @graemerocher deleted bin, conf and junit style sheets and made it so they are put …
graemerocher authored
201
202 install.doLast {
203 copy {
204 from('src/resources/tests')
205 into('lib')
206 filter(ReplaceTokens, tokens: ['grails.version': grailsVersion])
207 }
208
209 copy {
210 from("src/resources/bash")
211 filter(ReplaceTokens, tokens: ['grails.version': grailsVersion])
212 filter(ReplaceTokens, tokens: ['groovy.version': groovyVersion])
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: '*')
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
1442c04 @pledbrook Removed tabs from build.gradle (and trimmed whitespace from ends of l…
pledbrook authored
233 task assemble(dependsOn:zipDist)
Something went wrong with that request. Please try again.