-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (60 loc) · 2.07 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
group 'com.traitswu'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'idea'
apply plugin: 'jetty'
sourceCompatibility = 1.7
task createJavaProject << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
task createWebProject(dependsOn: 'createJavaProject') << {
def webAppDir = file("$webAppDirName")
webAppDir.mkdirs()
}
repositories {
mavenCentral()
}
dependencies {
compile([
'org.springframework:spring-context:4.2.1.RELEASE',
'org.springframework:spring-test:4.2.1.RELEASE',
'org.springframework:spring-core:4.2.1.RELEASE',
'org.springframework:spring-beans:4.2.1.RELEASE',
'org.springframework:spring-jdbc:4.2.1.RELEASE',
'org.springframework:spring-aop:4.2.1.RELEASE',
'org.springframework:spring-tx:4.2.1.RELEASE',
'org.springframework:spring-context-support:4.2.1.RELEASE',
'org.springframework:spring-orm:4.2.1.RELEASE',
'org.springframework:spring-web:4.2.1.RELEASE',
'org.springframework:spring-webmvc:4.2.1.RELEASE',
])
compile([
'org.hibernate:hibernate-core:4.3.11.Final',
'org.hibernate:hibernate-entitymanager:4.3.11.Final'
])
compile 'mysql:mysql-connector-java:5.1.36'
compile 'com.google.guava:guava:18.0'
compile 'c3p0:c3p0:0.9.1.2'
compile 'org.aspectj:aspectjweaver:1.8.7'
compile([
'org.slf4j:slf4j-api:1.7.12',
'ch.qos.logback:logback-core:1.1.3',
'ch.qos.logback:logback-classic:1.1.3',
'ch.qos.logback:logback-access:1.1.3'
])
providedCompile([
'javax.servlet:javax.servlet-api:3.1.0',
'javax.servlet:jsp-api:2.0',
'javax.servlet:jstl:1.2'
])
testCompile group: 'junit', name: 'junit', version: '4.11'
}
jettyRun{
webAppSourceDirectory file("$projectDir/src/main/webapp")
httpPort 8999
contextPath project.name
scanIntervalSeconds 0
reload "automatic"
}