-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
72 lines (61 loc) · 2.02 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'XueLiang' at '17-2-24 上午9:55' with Gradle 3.0
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/3.0/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.akhikhl.gretty:gretty:1.4.0"
}
}
gretty {
port = 8080
servletContainer = 'jetty9'
contextPath = '/'
debugSuspend = false
// ... many more properties
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
// In this section you declare where to find the dependencies of your project
repositories {
mavenLocal()
maven { url 'http://repo1.xueliang.org/repository/maven-public/'}
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
jcenter()
maven { url 'https://repo.spring.io/libs-snapshot/' }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
// In this section you declare the dependencies for your production and test code
dependencies {
def springVersion = '4.3.6.RELEASE'
def springSecurityVersion = '4.2.1.RELEASE'
def log4jVersion = '2.8';
compile "org.springframework:spring-web:$springVersion"
compile "org.springframework:spring-webmvc:$springVersion"
compile "org.springframework.security:spring-security-web:$springSecurityVersion"
compile "org.springframework.security:spring-security-config:$springSecurityVersion"
compile "org.apache.logging.log4j:log4j-core:$log4jVersion"
compile "org.apache.logging.log4j:log4j-api:$log4jVersion"
compile "org.json:json:20160810"
compile "com.fasterxml.jackson.core:jackson-databind:2.9.0.pr1"
testCompile 'junit:junit:4.12'
}