forked from gwtbootstrap/gwt-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (54 loc) · 1.37 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
apply plugin:"java"
prijectIdentity = "GWTBootstrap"
gwtVersion = "2.5.0-rc1"
task wrapper(type: Wrapper) {
gradleVersion = 1.0
}
repositories {
mavenCentral()
}
configurations {
gwtCompile
}
dependencies {
compile (
[group: 'com.google.gwt', name: 'gwt-servlet', version: gwtVersion],
[group: 'com.google.gwt', name: 'gwt-user', version: gwtVersion],
[group: 'com.google.gwt', name: 'gwt-dev', version: gwtVersion],
)
//gwt compile
gwtCompile (
[group: 'com.google.gwt', name: 'gwt-user', version: gwtVersion],
[group: 'com.google.gwt', name: 'gwt-dev', version: gwtVersion],
)
}
outputDir = "gradle-output"
moduleName = 'com.github.gwtbootstrap.Bootstrap'
/**
GWT-compilation and create gwt-js.
*/
task compileGWT << {
created = (new File(outputDir)).mkdirs()
//compile
ant.java(classname:'com.google.gwt.dev.Compiler', failOnError: 'true', fork: 'true')
{
//args settings
jvmarg(value: '-Xmx512M')
arg(line: '-war ' + outputDir)
arg(line: '-logLevel DEBUG')
arg(line: '-style PRETTY')
arg(value: moduleName)
classpath {
pathElement(location: 'src/main/java')
pathElement(path: configurations.gwtCompile.asPath)
}
}
}
testOutputDir = "gradle-test-output"
testModuleName = 'com.github.gwtbootstrap.Bootstrap'
/**
GWT-JUnitTests-compilation and create gwt-js.
*/
task compileGWTTests << {
//not yet applied!
}