This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (54 loc) · 1.7 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
buildscript {
ext {
gaeVersion = '1.9.26'
}
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:' + gaeVersion
}
}
// check if JAVA_HOME is set, otherwise build tasks will fail
gradle.taskGraph.whenReady {
graph ->
if (System.env.'JAVA_HOME' == null) {
throw new GradleException("JAVA_HOME not set. Please set it, otherwise this task can not be executed.")
}
else {
println "JAVA_HOME = " + System.env.'JAVA_HOME'
}
}
repositories {
mavenCentral()
}
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:' + gaeVersion
compile 'com.google.appengine:appengine-api-1.0-sdk:' + gaeVersion
compile 'com.google.appengine.tools:appengine-gcs-client:0.4.4'
compile 'com.googlecode.objectify:objectify:5.1.5'
compile 'javax.servlet:servlet-api:2.5' // GAE works with only with 2.5
compile 'commons-fileupload:commons-fileupload:1.2'
// testing dependencies
testCompile 'com.google.appengine:appengine-testing:' + gaeVersion
testCompile 'com.google.appengine:appengine-api-stubs:' + gaeVersion
testCompile 'com.google.appengine:appengine-api-labs:' + gaeVersion
testCompile 'com.google.appengine:appengine-tools-sdk:1.9.24'
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-core:1.10.19'
}
test {
// adjust this filter to your needs
}
appengine {
httpPort = 8080
downloadSdk = true
jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000']
appcfg {
oauth2 = true
noCookies = false
}
}