-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
executable file
·131 lines (107 loc) · 4.36 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
apply plugin: 'war'
apply plugin: 'tomcat'
apply plugin: 'java'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'rebel'
println "PROJECT=" + project.name
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url "http://download.java.net/maven/2" }
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:0.9.9'
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.5'
classpath 'org.zeroturnaround:gradle-jrebel-plugin:1.1.2'
}
}
repositories {
mavenCentral()
mavenLocal()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
def tomcatVersion = '7.0.54'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
compile 'org.springframework:spring-core:4.0.5.RELEASE'
compile 'org.springframework:spring-webmvc:4.0.5.RELEASE'
compile 'org.springframework:spring-orm:4.0.5.RELEASE'
compile 'org.springframework:spring-aspects:4.0.5.RELEASE'
compile 'org.springframework:spring-expression:4.0.5.RELEASE'
compile 'org.springframework:spring-aop:4.0.5.RELEASE'
compile 'org.springframework:spring-context:4.0.5.RELEASE'
compile 'org.springframework.security:spring-security-web:3.2.4.RELEASE'
compile 'org.springframework.security:spring-security-config:3.2.4.RELEASE'
compile 'org.springframework.security:spring-security-taglibs:3.2.4.RELEASE'
compile 'org.springframework.security:spring-security-core:3.2.4.RELEASE'
compile 'org.thymeleaf:thymeleaf:2.1.3.RELEASE'
compile 'org.thymeleaf:thymeleaf-spring4:2.1.3.RELEASE'
compile 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:1.2.5'
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity3:2.1.1.RELEASE'
compile 'org.hibernate:hibernate-entitymanager:4.3.5.Final'
compile 'mysql:mysql-connector-java:5.1.30'
compile 'c3p0:c3p0:0.9.1.2'
compile 'javax.validation:validation-api:1.1.0.Final'
compile 'org.springframework.data:spring-data-jpa:1.7.0.RELEASE'
compile 'org.springframework.data:spring-data-commons:1.7.0.RELEASE'
compile 'org.hibernate:hibernate-validator:5.0.1.Final'
compile 'com.h2database:h2:1.4.179'
compile 'com.mysema.querydsl:querydsl-jpa:3.6.6'
compile "com.mysema.querydsl:querydsl-apt:3.6.6:jpa" // Magic happens here
compile 'ch.qos.logback:logback-classic:1.1.2'
// compile 'org.slf4j:jcl-over-slf4j:1.7.7'
//compile 'org.slf4j:slf4j-log4j12:1.7.7'
compile 'javax.mail:mail:1.4.7'
compile 'javax.activation:activation:1.1.1'
compile 'joda-time:joda-time:2.4'
compile 'org.jadira.usertype:usertype.core:3.2.0.GA'
compile 'commons-io:commons-io:1.4'
compile 'commons-fileupload:commons-fileupload:1.2'
compile 'com.fasterxml.jackson.core:jackson-core:2.4.4'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate4:2.4.4'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.4'
testCompile 'org.springframework:spring-test:4.0.5.RELEASE'
testCompile 'junit:junit:4.11'
testCompile "org.mockito:mockito-core:1.9.5"
testCompile "org.hamcrest:hamcrest-library:1.3"
testCompile 'org.activiti:activiti-engine:5.15.1'
testCompile 'org.glassfish.web:javax.el:2.2.6'
providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
}
test {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
idea {
module {
sourceDirs += file('generated/')
}
}
task deployWar() {
def tomcatHome = '/usr/local/tomcat7/webapps'
doLast {
logger.lifecycle("Going to deploy MediNetServices into ${tomcatHome} from ${libsDir.getPath()}")
copy {
from libsDir
into "${tomcatHome}"
include 'MediNetServices.war'
}
}
}
war.dependsOn(generateRebel)
deployWar.dependsOn(war)
task wrapper(type: Wrapper) { gradleVersion = '1.11' }
tomcatRunWar.contextPath = ''