-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.98 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
// Currently, the appengine gradle plugin's appengine devappserver launch doesn't interact well with Intellij/AndroidStudio's
// Gradle integration. As a temporary solution, please launch from the command line.
// ./gradlew modulename:appengineRun
// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
buildscript {
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.20'
}
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.20'
compile 'com.google.appengine:appengine-endpoints:1.9.20'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.20'
compile 'com.google.appengine:appengine-api-labs:1.9.20'
compile("com.googlecode.objectify:objectify:4.0b1") {
exclude group: 'com.google.gwt', module: 'gwt-user'
exclude group: 'com.google.appengine'
exclude group: 'joda-time'
exclude group: 'org.joda'
}
compile 'javax.servlet:servlet-api:2.5'
testCompile 'com.google.appengine:appengine-api-labs:1.9.20'
testCompile 'com.google.appengine:appengine-api-stubs:1.9.20'
testCompile 'com.google.appengine:appengine-testing:1.9.20'
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
output.classesDir = "${buildDir}/WEB-INF/classes"
}
test {
output.classesDir = "${buildDir}/WEB-INF/classes"
}
}
webAppDirName = "src/main/webapp"
war {
webInf { from 'src/main/resources' } // adds a file-set to the WEB-INF dir.
}
appengine {
downloadSdk = true
daemon = false
appcfg {
oauth2 = true
noCookies = false
host = "0.0.0.0"
}
jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000']
httpPort = 9999
httpAddress = "0.0.0.0"
}