forked from grails/grails-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
98 lines (85 loc) · 2.25 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "commons-io:commons-io:1.4"
}
}
apply id: 'groovy'
version = '1.3.0.BUILD-SNAPSHOT'
sourceCompatibility = "1.5"
targetCompatibility = "1.5"
archivesBaseName = 'grails'
configurations {
compile.transitive = true
jsp21.extendsFrom compile
}
dependencies {
lib = "$projectDir/lib"
groovy files("$lib/groovy-all-1.7.2.jar")
compile files(fileTree(dir: lib as File, includes: ['*.jar'], excludes: ['jsp-api-2.1.jar', 'groovy-all-1.7.2.jar']), "${System.getenv('JAVA_HOME')}/lib/tools.jar")
jsp21 files("$lib/jsp-api-2.1.jar")
}
sourceSets {
main {
java {
srcDirs = []
}
groovy {
srcDirs = ['src/java']
}
resources {
srcDirs = ['src/java']
include '**/*.properties', '**/*.xsd', '**/*.dtd'
}
}
jsp21 {
compileClasspath = files(configurations.jsp21, main.classes)
groovy.srcDirs = ['src/jsp21']
resources.srcDirs = []
}
test {
java {
srcDirs = []
}
groovy {
srcDirs = ['src/test']
}
resources {
srcDirs = ['src/test', 'src/jar']
exclude '**/*.java', '**/*.groovy'
}
}
buildScripts {
compileClasspath = sourceSets.main.compileClasspath + main.classes
classesDir = "$buildDir/compiled-scripts" as File
groovy.srcDirs = ['scripts']
resources.srcDirs = []
}
}
jsp21Classes.dependsOn classes
task allClasses(dependsOn: [classes, jsp21Classes, buildScriptsClasses])
configure([compileGroovy, compileTestGroovy]) {
groovyOptions.fork(memoryInitialSize: '128M', memoryMaximumSize: '1G')
groovyOptions.encoding = "UTF-8"
}
configure([compileJava, compileTestJava]) {
options.deprecation = true
options.debug = true
}
apply {
url 'gradle/docs.gradle'
url 'gradle/assemble.gradle'
url 'gradle/unit-test.gradle'
url 'gradle/maven.gradle'
url 'gradle/findbugs.gradle'
}
clean {
// add additional dirs
from(docs.destinationDir, libs.destinationDir)
}
task wrapper(type: Wrapper) {
gradleVersion = '0.9-20100118091626+0100'
jarPath = 'gradle/wrapper'
}