forked from akhikhl/gretty-sample
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
41 lines (32 loc) · 837 Bytes
/
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
plugins {
id 'org.gretty' version '3.0.7'
}
apply plugin: 'java'
subprojects {
apply plugin: 'war'
apply plugin: 'org.gretty'
gretty {
scanInterval = 1 //Scan for changes every second
host = '0.0.0.0' //Enable network access from outside your local machine
servletContainer = 'tomcat9' //Use Jetty7 which is compatible with JDK6
managedClassReload = true //Activate spring-loaded class reloading
integrationTestTask = 'integrationTest'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
repositories {
mavenCentral()
}
}
apply plugin: 'org.gretty'
farm {
webapp ':customer'
webapp ':car'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
}