forked from rudraaks/spring-hibernate-zero-xml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
67 lines (54 loc) · 1.96 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
apply plugin: 'groovy'
apply plugin: 'eclipse'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:+'
}
}
// JDK version source compatibility
sourceCompatibility = 1.8
// project version
version = '1.0'
// War file name
war.baseName = 'hibernate4'
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.4'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.5'
compile group: 'org.springframework', name: 'spring-webmvc', version: '4.1.6.RELEASE'
compile group: 'org.springframework', name: 'spring-tx', version: '4.3.8.RELEASE'
compile group: 'org.springframework', name: 'spring-jdbc', version: '4.3.8.RELEASE'
compile group: 'org.springframework', name: 'spring-web', version: '4.3.8.RELEASE'
compile group: 'org.springframework', name: 'spring-context-support', version: '4.3.8.RELEASE'
compile group: 'org.springframework', name: 'spring-orm', version: '4.3.8.RELEASE'
compile group: 'org.hibernate', name: 'hibernate-core', version: '4.3.8.Final'
compile group: 'commons-dbcp', name: 'commons-dbcp', version: '1.2.2'
compile ('net.sf.ehcache:ehcache:2.10.2.2.21'){
exclude module: 'slf4j-api'
}
compile group: 'commons-lang', name: 'commons-lang', version: '2.2'
compile group: 'log4j', name: 'log4j', version: '1.2.16'
/*compile group: 'javax.servlet', name: 'jstl', version: '1.2'
providedCompile "javax.servlet:javax.servlet-api:3.1.0"*/
}
test {
systemProperties 'property': 'value'
}
gretty {
httpPort = 8090
contextPath = '/hibernate4'
// ... many more properties
}