-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (50 loc) · 2.04 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
// ================================================================================
// PLUGIN
// ================================================================================
version = '0.0.1-SNAPSHOT'
apply plugin: 'eclipse'
apply plugin: 'tomcat'
// ================================================================================
// DEPENDENCIES
// ================================================================================
repositories {
mavenCentral()
}
dependencies {
def postgresqlVersion = '9.0-801.jdbc4'
def springVersion = '3.0.5.RELEASE'
providedCompile "javax.servlet:servlet-api:2.5"
compile "javax.transaction:transaction-api:1.1",
"org.springframework:spring-beans:${springVersion}",
"org.springframework:spring-jdbc:${springVersion}",
"org.springframework:spring-web:${springVersion}",
"org.springframework:spring-webmvc:${springVersion}",
"org.springframework:spring-orm:${springVersion}",
'org.hibernate:hibernate-entitymanager:3.3.2.GA',
'taglibs:standard:1.1.2',
'javax.servlet:jstl:1.1.2',
'commons-dbcp:commons-dbcp:20030825.184428',
'commons-pool:commons-pool:20030825.183949',
"postgresql:postgresql:${postgresqlVersion}"
}
//Special logic requiered for applying plugin
buildscript {
repositories {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = "GitHub"
addArtifactPattern 'http://cloud.github.com/downloads/bmuschko/gradle-tomcat-plugin/[module]-[revision].[ext]'
}
mavenCentral()
}
dependencies {
def tomcatVersion = '7.0.14'
classpath ':gradle-tomcat-plugin:0.7'
classpath "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
classpath "org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
classpath fileTree(dir: '/src/main/webapp/WEB-INF/lib', include: '*.jar')
}
}
//================================================================================
// TASKS
//================================================================================