-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
185 lines (161 loc) · 8.13 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
apply plugin: 'war'
apply plugin: 'idea'
allprojects {
version = '1.0'
group = 'com.demo'
ext {
//spring libs
springVersion = '4.3.11.RELEASE'
springJpaVersion = '1.11.7.RELEASE'
springSecurityVersion = '4.2.3.RELEASE'
springBootVersion = '1.4.1.RELEASE'
aspectjVersion = '1.8.4'
yamlVersion = '1.17'
hessianVersion = '4.0.38'
burlapVersion = '2.1.12'
mqVersion = '5.14.1'
//thymeleaf libs
thymeleafVersion = '3.0.7.RELEASE'
thymeleafExtrasSpringSecurityVersion = '3.0.2.RELEASE'
//testing libs
mockitoVersion = '2.0.2-beta'
junitVersion = '4.11'
//date library
jodaVersion = '2.9.2'
//persistency library
hibernateVersion = '5.2.10.Final'
//in memory test database
h2Version = '1.4.192'
//mysql database
mysqlConnectorVersion = '6.0.6'
//logging libs
log4jVersion = '2.8.2'
slf4jVersion = '1.7.21'
//report generating libs
poiVersion = '3.13'
jacksonVersion = '2.8.3'
//we group libraries by their purpose so we can import them easier in the modules
boot = [
springBootPlugin: "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion",
starterWeb : "org.springframework.boot:spring-boot-starter-web:$springBootVersion",
starterJetty : "org.springframework.boot:spring-boot-starter-jetty:$springBootVersion",
starterSecurity : "org.springframework.boot:spring-boot-starter-security:$springBootVersion",
starterJpa : "org.springframework.boot:spring-boot-starter-data-jpa:$springBootVersion",
starterTest : "org.springframework.boot:spring-boot-starter-test:$springBootVersion",
starterTomcat : "org.springframework.boot:spring-boot-starter-tomcat:$springBootVersion",
actuator : "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion",
starterWs : "org.springframework.boot:spring-boot-starter-ws:$springBootVersion",
yaml : "org.yaml:snakeyaml:$yamlVersion",
devtools : "org.springframework.boot:spring-boot-devtools:$springBootVersion",
mq : "org.springframework.boot:spring-boot-starter-activemq:$springBootVersion"
]
tests = [
junit : "junit:junit:$junitVersion",
mockito : "org.mockito:mockito-all:$mockitoVersion",
easymock : "org.easymock:easymock:3.4",
jmock : "org.jmock:jmock:2.8.2",
hamcrestCore: "org.hamcrest:hamcrest-core:1.3",
hamcrestLib : "org.hamcrest:hamcrest-library:1.3"
]
log = [
log4j2Api : "org.apache.logging.log4j:log4j-api:$log4jVersion",
log4j2Core : "org.apache.logging.log4j:log4j-core:$log4jVersion",
log4jSlf4j : "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion",
slf4jJcl : "org.slf4j:jcl-over-slf4j:$slf4jVersion"
]
misc = [
h2 : "com.h2database:h2:$h2Version",
mysqlConnector : "mysql:mysql-connector-java:$mysqlConnectorVersion",
joda : "joda-time:joda-time:$jodaVersion",
jstl : "javax.servlet:jstl:1.2",
javaxEl : "javax.el:javax.el-api:3.0.0",
poi : "org.apache.poi:poi:$poiVersion",
jacksonCore : "com.fasterxml.jackson.core:jackson-core:$jacksonVersion",
jacksonDatabind : "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
jacksonAnnotations: "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion",
portlet : "javax.portlet:portlet-api:2.0",
standard : "taglibs:standard:1.1.2",
servlet : "javax.servlet:javax.servlet-api:3.1.0",
liferayService : "com.liferay.portal:portal-services:6.2.2",
commons : "org.apache.commons:commons-lang3:3.4",
ojdbc : "com.github.noraui:ojdbc7:12.1.0.2",
javax_inject : "javax.inject:javax.inject:1",
aspectjweaver : "org.aspectj:aspectjweaver:$aspectjVersion",
aspectjrt : "org.aspectj:aspectjrt:$aspectjVersion",
cglib : "cglib:cglib:3.2.2",
hikari : "com.zaxxer:HikariCP:2.4.7",
hessian : "com.caucho:hessian:$hessianVersion",
burlap : "com.caucho:burlap:$burlapVersion",
mq : "org.apache.activemq:activemq-spring:$mqVersion",
mqBroker : "org.apache.activemq:activemq-broker:$mqVersion",
wsdl4j : "wsdl4j:wsdl4j:1.6.1",
jaxb : "com.sun.xml.bind:jaxb-xjc:2.2.4-1"
]
hibernate = [
validator: "org.hibernate:hibernate-validator:6.0.1.Final",
ehcache : "org.hibernate:hibernate-ehcache:$hibernateVersion",
em : "org.hibernate:hibernate-entitymanager:$hibernateVersion",
core : "org.hibernate:hibernate-core:$hibernateVersion"
]
spring = [
data : "org.springframework.data:spring-data-jpa:$springJpaVersion",
mongo : "org.springframework.data:spring-data-mongodb:1.9.2.RELEASE",
test : "org.springframework:spring-test:$springVersion",
webmvc : "org.springframework:spring-webmvc:$springVersion",
aop : "org.springframework:spring-aop:$springVersion",
jdbc : "org.springframework:spring-jdbc:$springVersion",
jms : "org.springframework:spring-jms:$springVersion",
orm : "org.springframework:spring-orm:$springVersion",
mvcPortlet : "org.springframework:spring-webmvc-portlet:$springVersion",
contextSupport : "org.springframework:spring-context-support:$springVersion",
securityWeb : "org.springframework.security:spring-security-web:$springSecurityVersion",
securityTaglibs: "org.springframework.security:spring-security-taglibs:$springSecurityVersion",
securityConfig : "org.springframework.security:spring-security-config:$springSecurityVersion",
hateoas : "org.springframework.hateoas:spring-hateoas:0.17.0.RELEASE",
plugin : "org.springframework.plugin:spring-plugin-core:1.1.0.RELEASE"
]
thymeleaf = [
thymeleafSpring4 : "org.thymeleaf:thymeleaf-spring4:$thymeleafVersion",
thymeleafSpringSecurity4 : "org.thymeleaf.extras:thymeleaf-extras-springsecurity4:$thymeleafExtrasSpringSecurityVersion"
]
}
}
configurations {
compile.exclude group:'commons-logging'
testCompile.exclude group:'commons-logging'
}
dependencies {
compile spring.webmvc
compile spring.jdbc
compile spring.securityConfig
compile spring.securityWeb
compile spring.data
compile misc.h2
compile misc.hikari
compile misc.mysqlConnector
compile hibernate.validator
compile hibernate.core
compile thymeleaf.thymeleafSpring4
compile thymeleaf.thymeleafSpringSecurity4
compile log.log4j2Api
compile log.log4j2Core
compile log.log4jSlf4j
compile log.slf4jJcl
compile misc.jacksonCore
compile misc.jacksonDatabind
compile misc.jacksonAnnotations
providedCompile "javax.servlet:javax.servlet-api:3.1.0"
testCompile tests.junit
testCompile spring.test
testCompile tests.mockito
}
repositories {
mavenCentral()
}
task explodedWar(type: Sync) {
into "build/libs/exploded/${rootProject.name}-${version}.war"
with war
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}