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.349 kb
712a509 Split build into a couple of build scripts. Updated to new version of Gr...
hd authored
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath "commons-io:commons-io:1.4"
7 }
8 }
9
4ec3a5a Jeff Scott Brown GRAILS-6596 - upgrade to gradle 0.9-rc-1
jeffbrown authored
10 apply plugin: 'groovy'
3e17890 1.1 branch is now trunk
graeme authored
11
7698a61 Jeff Scott Brown set version to 1.4.0.BUILD-SNAPSHOT
jeffbrown authored
12 version = '1.4.0.BUILD-SNAPSHOT'
712a509 Split build into a couple of build scripts. Updated to new version of Gr...
hd authored
13
486145c Peter Ledbrook 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 base n...
graemerocher authored
16 archivesBaseName = 'grails'
3e17890 1.1 branch is now trunk
graeme authored
17
d97a4e5 Hans Dockter 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 Gr...
hd authored
19 compile.transitive = true
d97a4e5 Hans Dockter 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 Gr...
hd authored
24 lib = "$projectDir/lib"
bf7f1dc Jeff Scott Brown remove hardcoded groovy jar name to better support the groovy/grails joi...
jeffbrown authored
25 groovy files(fileTree(dir: lib as File, includes: ['groovy-all-1.7.*.jar']))
ea00309 Luke Daley 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 Gr...
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 Gr...
hd authored
30 sourceSets {
d97a4e5 Hans Dockter 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 Gr...
hd authored
32 java {
33 srcDirs = []
34 }
d97a4e5 Hans Dockter 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 Hans Dockter Starting with new Gradle build for Grails.
hansd authored
38 resources {
39 srcDirs = ['src/java']
69641fc Burt Beckwith 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 Gr...
hd authored
43 jsp21 {
44 compileClasspath = files(configurations.jsp21, main.classes)
d97a4e5 Hans Dockter 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 Gr...
hd authored
48 test {
49 java {
50 srcDirs = []
51 }
5b0ccf9 Peter Ledbrook Removed rogue text from build file.
pledbrook authored
52 groovy {
712a509 Split build into a couple of build scripts. Updated to new version of Gr...
hd authored
53 srcDirs = ['src/test']
54 }
55 resources {
56 srcDirs = ['src/test', 'src/jar']
57 exclude '**/*.java', '**/*.groovy'
58 }
59 }
d97a4e5 Hans Dockter 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 Gr...
hd authored
61 compileClasspath = sourceSets.main.compileClasspath + main.classes
62 classesDir = "$buildDir/compiled-scripts" as File
63 groovy.srcDirs = ['scripts']
d97a4e5 Hans Dockter 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 Gr...
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 {
4ec3a5a Jeff Scott Brown GRAILS-6596 - upgrade to gradle 0.9-rc-1
jeffbrown authored
82 from 'gradle/docs.gradle'
83 from 'gradle/assemble.gradle'
84 from 'gradle/unit-test.gradle'
85 from 'gradle/maven.gradle'
86 from 'gradle/findbugs.gradle'
712a509 Split build into a couple of build scripts. Updated to new version of Gr...
hd authored
87 }
88
89a2d32 Added single test execution. Changed output destination to be the same a...
hd authored
89 clean {
90 // add additional dirs
4ec3a5a Jeff Scott Brown GRAILS-6596 - upgrade to gradle 0.9-rc-1
jeffbrown authored
91 delete(docs.destinationDir, libs.destinationDir)
89a2d32 Added single test execution. Changed output destination to be the same a...
hd authored
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.