Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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