forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (66 loc) · 2.22 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:+'
}
}
repositories {
maven {
url 'https://maven-central.storage.googleapis.com'
}
jcenter()
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
// 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 {
// https://cloud.google.com/appengine/docs/standard/java/release-notes
providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5'
compile 'com.google.appengine:appengine:+'
appengineSdk 'com.google.appengine:appengine-java-sdk:+'
compile 'com.google.appengine:appengine-api-1.0-sdk:+'
compile 'com.google.appengine.tools:appengine-gcs-client:+'
compile 'com.googlecode.objectify:objectify:5.1.21'
//compile 'javax.servlet:servlet-api:2.5' // GAE works with only with 2.5
compile 'commons-fileupload:commons-fileupload:1.3.3'
// testing dependencies
testCompile 'com.google.appengine:appengine-testing:+'
testCompile 'com.google.appengine:appengine-api-stubs:+'
testCompile 'com.google.appengine:appengine-api-labs:+'
testCompile 'com.google.appengine:appengine-tools-sdk:+'
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-core:2.11.0'
}
test {
filter {
includeTestsMatching "org.wahlzeit.WahlzeitTestSuite"
}
}
appengine {
httpPort = 8080
downloadSdk = true
jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000']
appcfg {
oauth2 = true
noCookies = false
}
}
// Google App Engine Standard Environment supports Java 7 only (as from August 2016, https://cloud.google.com/appengine/docs)
sourceCompatibility = 1.7 // Java version compatibility to use when compiling Java source.
targetCompatibility = 1.7 // Java version to generate classes for.