-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·62 lines (47 loc) · 1.34 KB
/
build.gradle
File metadata and controls
executable file
·62 lines (47 loc) · 1.34 KB
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
group 'com.pipedrive'
version '1.0-SNAPSHOT'
apply plugin: "java"
apply plugin: "war"
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
sourceCompatibility = 1.8
repositories {
mavenCentral()
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
mavenLocal()
}
ext {
jerseyVersion = '2.26'
}
dependencies {
compile "org.glassfish.jersey.containers:jersey-container-servlet:$jerseyVersion"
compile "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion"
compile "javax.servlet:javax.servlet-api:4.0.0-b07"
compile "com.google.code.gson:gson:2.2.4"
compile 'com.heroku.sdk:heroku-deploy:2.0.6'
compile "postgresql:postgresql:9.1-901-1.jdbc4"
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile group: 'com.squareup.okhttp', name: 'logging-interceptor', version: '2.6.0'
compile group: 'org.apache.lucene', name: 'lucene-core', version: '3.6.0'
compile 'com.github.jsimone:webapp-runner:8.5.11.3'
testCompile "junit:junit:4.12"
}
gretty {
contextPath = '/'
servletContainer = 'tomcat8'
}
//For Heroku
task stage() {
dependsOn clean, war
}
war.mustRunAfter clean
task copyToLib(type: Copy) {
into "$buildDir/server"
from(configurations.compile) {
include "webapp-runner*"
}
}
stage.dependsOn(copyToLib)