-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (84 loc) · 2.64 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
classpath "com.google.appengine:gradle-appengine-plugin:1.9.49"
classpath "nu.studer:gradle-credentials-plugin:1.0.1"
}
}
ext {
appengineVersion = "1.9.50"
chuckNorrisVersion = "1.0.1"
commonsCollectionVersion = "4.1"
commonsLangVersion = "3.5"
guiceVersion = "4.1.0"
hamcrestVersion = "1.3"
junitVersion = "4.12"
mockitoVersion = "2.5.4"
restfbmessengerVersion = "1.2.0"
rivescriptVersion = "0.9.0"
servletVersion = "2.5"
slf4jVersion = "1.7.24"
}
description = "Chuck Norris IO App for Facebook Messenger"
apply plugin: "java"
apply plugin: "idea"
apply plugin: "war"
apply plugin: "appengine"
apply plugin: "nu.studer.credentials"
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
appengineSdk "com.google.appengine:appengine-java-sdk:${appengineVersion}"
compile "com.github.marsbits.restfbmessenger:restfbmessenger-core:${restfbmessengerVersion}"
compile "com.google.appengine:appengine-api-1.0-sdk:${appengineVersion}"
compile "com.google.inject:guice:${guiceVersion}"
compile "com.google.inject.extensions:guice-servlet:${guiceVersion}"
compile "com.rivescript:rivescript-core:${rivescriptVersion}"
compile "io.chucknorris:client-java:${chuckNorrisVersion}"
compile "org.apache.commons:commons-collections4:${commonsCollectionVersion}"
compile "org.apache.commons:commons-lang3:${commonsLangVersion}"
compile "org.slf4j:slf4j-jdk14:${slf4jVersion}"
providedCompile "javax.servlet:servlet-api:${servletVersion}"
testCompile "junit:junit:${junitVersion}"
testCompile("org.hamcrest:hamcrest-core:${hamcrestVersion}")
testCompile("org.hamcrest:hamcrest-library:${hamcrestVersion}")
testCompile "org.mockito:mockito-core:${mockitoVersion}"
}
appengine {
disableUpdateCheck = true
downloadSdk = true
httpPort = 8088
appcfg {
noCookies = true
oauth2 = true
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
war {
filesMatching("**/appengine-web.xml") {
expand([
"appengineAppId": "chucknorris-io-fb-messenger",
"facebookVerifyToken": credentials.chucknorrisIoVerifyToken,
"facebookAccessToken": credentials.chucknorrisIoAccessToken,
"facebookAppSecret": credentials.chucknorrisIoAppSecret
])
}
}
task wrapper(type: Wrapper) {
description = "Generates gradlew[.bat] scripts."
gradleVersion = "3.4.1"
}