Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 99 lines (85 sloc) 2.338 kb
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath "commons-io:commons-io:1.4"
7 }
8 }
9
10 apply id: 'groovy'
3e17890 1.1 branch is now trunk
graeme authored
11
cb3cfa3 @jeffbrown update Grails version number to 1.3.5.BUILD-SNAPSHOT
jeffbrown authored
12 version = '1.3.5.BUILD-SNAPSHOT'
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
13
486145c @pledbrook Fixed typos in Gradle build.
pledbrook authored
14 sourceCompatibility = "1.5"
15 targetCompatibility = "1.5"
f73204b @graemerocher fixed problem with Gradle build uses 'grails-core' as the archive bas…
graemerocher authored
16 archivesBaseName = 'grails'
3e17890 1.1 branch is now trunk
graeme authored
17
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
18 configurations {
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
19 compile.transitive = true
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
20 jsp21.extendsFrom compile
21 }
3e17890 1.1 branch is now trunk
graeme authored
22
23 dependencies {
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
24 lib = "$projectDir/lib"
bf7f1dc @jeffbrown remove hardcoded groovy jar name to better support the groovy/grails …
jeffbrown authored
25 groovy files(fileTree(dir: lib as File, includes: ['groovy-all-1.7.*.jar']))
da458e7 @alkemist GRAILS-6737 - Upgrade to Grails 1.7.5
alkemist authored
26 compile files(fileTree(dir: lib as File, includes: ['*.jar'], excludes: ['jsp-api-2.1.jar', 'groovy-all-1.7.5.jar']), "${System.getenv('JAVA_HOME')}/lib/tools.jar")
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
27 jsp21 files("$lib/jsp-api-2.1.jar")
3e17890 1.1 branch is now trunk
graeme authored
28 }
29
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
30 sourceSets {
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
31 main {
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
32 java {
33 srcDirs = []
34 }
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
35 groovy {
36 srcDirs = ['src/java']
3e17890 1.1 branch is now trunk
graeme authored
37 }
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
38 resources {
39 srcDirs = ['src/java']
69641fc @burtbeckwith GRAILS-6016 tweaked to include .dtd files in jar
burtbeckwith authored
40 include '**/*.properties', '**/*.xsd', '**/*.dtd'
3e17890 1.1 branch is now trunk
graeme authored
41 }
42 }
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
43 jsp21 {
44 compileClasspath = files(configurations.jsp21, main.classes)
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
45 groovy.srcDirs = ['src/jsp21']
46 resources.srcDirs = []
3e17890 1.1 branch is now trunk
graeme authored
47 }
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
48 test {
49 java {
50 srcDirs = []
51 }
5b0ccf9 @pledbrook Removed rogue text from build file.
pledbrook authored
52 groovy {
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
53 srcDirs = ['src/test']
54 }
55 resources {
56 srcDirs = ['src/test', 'src/jar']
57 exclude '**/*.java', '**/*.groovy'
58 }
59 }
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
60 buildScripts {
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
61 compileClasspath = sourceSets.main.compileClasspath + main.classes
62 classesDir = "$buildDir/compiled-scripts" as File
63 groovy.srcDirs = ['scripts']
d97a4e5 @hansd Starting with new Gradle build for Grails.
hansd authored
64 resources.srcDirs = []
3e17890 1.1 branch is now trunk
graeme authored
65 }
66 }
67
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
68 jsp21Classes.dependsOn classes
69 task allClasses(dependsOn: [classes, jsp21Classes, buildScriptsClasses])
70
71 configure([compileGroovy, compileTestGroovy]) {
72 groovyOptions.fork(memoryInitialSize: '128M', memoryMaximumSize: '1G')
73 groovyOptions.encoding = "UTF-8"
74 }
75
76 configure([compileJava, compileTestJava]) {
77 options.deprecation = true
78 options.debug = true
79 }
80
81 apply {
9ad0306 @pledbrook Minor syntax change to Gradle build.
pledbrook authored
82 url 'gradle/docs.gradle'
83 url 'gradle/assemble.gradle'
df04297 @hansd Some changes to test handling.
hansd authored
84 url 'gradle/unit-test.gradle'
9ad0306 @pledbrook Minor syntax change to Gradle build.
pledbrook authored
85 url 'gradle/maven.gradle'
86 url 'gradle/findbugs.gradle'
712a509 Split build into a couple of build scripts. Updated to new version of…
hd authored
87 }
88
89a2d32 Added single test execution. Changed output destination to be the sam…
hd authored
89 clean {
90 // add additional dirs
91 from(docs.destinationDir, libs.destinationDir)
92 }
93
4f679a1 Added wrapper. Some cleaning up. Fixed one bug with bundlor.
hd authored
94 task wrapper(type: Wrapper) {
95 gradleVersion = '0.9-20100118091626+0100'
96 jarPath = 'gradle/wrapper'
97 }
98
Something went wrong with that request. Please try again.