-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
47 lines (38 loc) · 1.66 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
// this bit of complexity is to pull down the main build script from the alclabs maven repository
// and then apply it.
configurations { gradleScript }
repositories { mavenRepo url: 'http://repo.alcshare.com' }
dependencies { gradleScript group: 'com.alcshare', name: 'alclabs-gradle', ext: 'gradle', version: '1.16' }
apply from: configurations.gradleScript.resolve().iterator().next()
info {
name = 'GWT Tree'
description = 'Developer sample using Google Web Toolkit to render a tree and retrieve trend data'
version = '2.0'
vendor = 'ALC Labs'
}
// define a configuration to use for compiling the GWT code
configurations { gwtCompile }
dependencies {
// into this configuration, we need the gwt-dev and gwt-user libraries
gwtCompile 'com.google.gwt:gwt-dev:2.0.4'
gwtCompile 'com.google.gwt:gwt-user:2.0.4'
compile 'com.google.gwt:gwt-servlet:2.0.4'
compile 'jfree:jfreechart:1.0.12'
providedCompile 'com.controlj.green:directaccess-api-addon:1.1.0'
providedCompile 'javax.servlet:servlet-api:2.5'
}
// a task to compile the GWT code into gwtBuildDir
task gwtCompile(description: 'Compiles the GWT code', type: JavaExec) {
main = 'com.google.gwt.dev.Compiler'
args '-war', gwtBuildDir.canonicalPath
args 'com.controlj.addon.gwttree.MainPage'
classpath sourceSets.main.java.srcDirs, configurations.gwtCompile, configurations.compile
maxHeapSize = '184m'
}
classes.dependsOn gwtCompile
war {
// ensured that the result of the gwtCompile is included in the war file
from (gwtBuildDir) { exclude '.gwt-tmp' }
}
// Helper method to get the dir into which the GWT compiler should write it's output
File getGwtBuildDir() { new File(buildDir, 'gwt') }