-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (53 loc) · 2.13 KB
/
build.gradle
File metadata and controls
71 lines (53 loc) · 2.13 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
63
64
65
66
67
68
69
70
71
plugins {
id 'java' //for java-only project
id 'groovy' //for mixed java/groovy project
id 'war' //for genarating war files
id 'org.akhikhl.gretty' version '2.0.0' //web app development plugin
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
//project.group = ...
//project.version = ...
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}
repositories {
mavenCentral()
maven {
url "http://maven.restlet.org/"
}
maven {
url "https://jitpack.io"
}
}
dependencies {
compile "javax.servlet:javax.servlet-api:3.1.0" //the Java servlet libraries
compile "org.restlet.jee:org.restlet:2.3.12" //for writing RESTful APIs
compile "com.google.code.gson:gson:2.8.2" //json library
compile "org.apache.commons:commons-pool2:2.4.3" //object pool
compile "org.apache.commons:commons-dbcp2:2.1.1" //db connection pool
compile "org.springframework:spring-jdbc:5.0.2.RELEASE" //spring JDBC classes
testCompile "org.codehaus.groovy:groovy-all:2.5.4"
testCompile "org.spockframework:spock-core:1.2-groovy-2.5"
testCompile "com.github.saikos:softeng18b-rest-api-client:v1.3.2"
providedRuntime "javax.servlet:javax.servlet-api:3.1.0" //provided by the servlet container at runtime
runtime "org.restlet.jee:org.restlet.ext.servlet:2.3.12" //Servlet adapter for Restlet framework
runtime "mysql:mysql-connector-java:5.1.47" //the MySQL JDBC driver
gretty "mysql:mysql-connector-java:5.1.47" //make sure it is also available to the grety plugin
}
gretty {
//scanInterval = 0 //disable hot deployment
httpEnabled = false
httpsEnabled = true
httpPort = 8765
httpsPort = 8765
contextPath = ''
//servletContainer = 'tomcat8' //use the default (jetty)
integrationTestTask = 'test'
}
test {
systemProperties(System.getProperties())
testLogging {
showStandardStreams = true
}
}