Skip to content

HTTPS clone URL

Subversion checkout URL

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