-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (35 loc) · 1.51 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
plugins {
id 'java' //for java-only project
id 'war' //for genarating war files
id 'org.gretty' version "2.3.1" //web app development plugin
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
//project.group = ...
//project.version = ...
repositories {
jcenter()
maven {
url "http://maven.restlet.org/"
}
}
dependencies {
compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
compile 'org.restlet.jse:org.restlet.ext.oauth:2.3.0'
compile 'org.restlet.jee:org.restlet.ext.json:2.3.12'
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-dbcp2:2.6.0" //db connection pool
compile "org.springframework:spring-jdbc:5.0.2.RELEASE" //spri// ng JDBC template utility
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:8.0.15" //the MySQL JDBC driver
}
gretty {
//scanInterval = 0 //disable hot deployment
httpEnabled = true
httpPort = 8080
contextPath = 'app'
//servletContainer = 'tomcat8' //use the default (jetty)
}