-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (80 loc) · 2.66 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Pull the plugin from a Maven Repo
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.eriwen:gradle-js-plugin:1.11.0'
classpath 'com.eriwen:gradle-css-plugin:1.11.0'
}
}
plugins {
id 'org.hidetake.ssh' version '1.1.4'
}
group 'Guide'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'war'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile(
//Spring
"org.springframework:spring-core:4.1.6.RELEASE",
"org.springframework:spring-web:4.1.6.RELEASE",
"org.springframework:spring-tx:4.1.6.RELEASE",
"org.springframework:spring-webmvc:4.1.6.RELEASE",
"org.springframework:spring-aop:4.1.6.RELEASE",
"org.springframework:spring-context-support:4.1.6.RELEASE",
"org.springframework:spring-beans:4.1.6.RELEASE",
"org.springframework:spring-test:4.1.6.RELEASE",
//Logback
"ch.qos.logback:logback-classic:1.1.3",
"org.logback-extensions:logback-ext-spring:0.1.2",
//Servlet
"javax.servlet:javax.servlet-api:3.0.1",
//Jackson
"com.fasterxml.jackson.core:jackson-core:2.1.0",
"com.fasterxml.jackson.core:jackson-databind:2.1.0",
"com.fasterxml.jackson.core:jackson-annotations:2.1.0",
//MyBatis
"org.mybatis:mybatis:3.2.8",
"org.mybatis:mybatis-spring:1.2.2",
//MySQL
"mysql:mysql-connector-java:5.1.36",
//ODBC
"org.springframework:spring-jdbc:4.1.6.RELEASE",
//File Upload
"commons-fileupload:commons-fileupload:1.3.1",
//Spring Session
"org.springframework.session:spring-session-data-redis:1.0.2.RELEASE",
//Spring Data Mongodb
"org.springframework.data:spring-data-mongodb:1.8.1.RELEASE",
//Hibernate
"org.hibernate:hibernate-entitymanager:4.3.11.Final",
"org.hibernate:hibernate-core:4.3.11.Final",
"org.springframework:spring-orm:4.1.6.RELEASE",
)
runtime("jstl:jstl:1.2")
}
// Copy jars
task copyJars(type: Copy) {
from configurations.runtime
into 'lib' // Target Location
}
// Test
test {
include '**/*Test.class'
}
// Declare root & destination dir
ext {
baseDir = '/src/main/webapp/staticmedia'
destDir = baseDir + '/compressed'
}
// Include other gradle files
apply from: 'gradle/build-js.gradle'
apply from: 'gradle/build-css.gradle'
apply from: 'gradle/build-server.gradle'