-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (41 loc) · 1.13 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
apply plugin: "java"
apply plugin: "war"
def tomcatHome = "/usr/share/tomcat8"
def homePath = System.properties['user.home']
repositories {
mavenCentral()
jcenter()
}
dependencies{
compile 'org.apache.wicket:wicket:6.+'
compile 'org.apache.wicket:wicket-extensions:6.+'
compile 'org.apache.wicket:wicket-spring:6.1.+'
compile 'org.apache.wicket:wicket-datetime:6.1.0'
compile 'org.apache.wicket:wicket-spring-annot:1.+'
compile 'javax.servlet:javax.servlet-api:3.+'
compile 'org.mongodb:mongo-java-driver:3.0.1'
compile 'org.mongodb:bson:3.0.1'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
srcDir 'src/main/java'
}
}
}
task enableGradleDaemon<< {
def gradleDaemon = new File("${homePath}/.gradle/gradle.properties")
gradleDaemon.text = "org.gradle.daemon=true"
}
task deploylocal(dependsOn: build) << {
println "Copy from ${libsDir.getPath()} into ${tomcatHome}/webapps"
copy{
from libsDir
into "${tomcatHome}/webapps"
include '*.war'
}
}