Skip to content

Commit 89db5f6

Browse files
committed
Gravação da atualização para o Spring 5.
1 parent fbfb1b7 commit 89db5f6

File tree

971 files changed

+204110
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

971 files changed

+204110
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: java $JAVA_OPTS -Dspring.profiles.active=prod -jar target/dependency/webapp-runner.jar --port $PORT target/*.war
Lines changed: 375 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,375 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.algaworks</groupId>
7+
<artifactId>brewer</artifactId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
10+
<packaging>war</packaging>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15+
16+
<failOnMissingWebXml>false</failOnMissingWebXml>
17+
18+
<java.version>1.8</java.version>
19+
<maven-compiler-pluging.version>3.2</maven-compiler-pluging.version>
20+
<flyway-maven-plugin.version>4.0.2</flyway-maven-plugin.version>
21+
<mysql-connector-java.version>5.1.39</mysql-connector-java.version>
22+
23+
<!-- Spring MVC -->
24+
<spring-framework.version>5.0.2.RELEASE</spring-framework.version>
25+
26+
<!-- Servlet API -->
27+
<servlet.version>3.1.0</servlet.version>
28+
29+
<!-- Thymeleaf -->
30+
<thymeleaf.version>3.0.1.RELEASE</thymeleaf.version>
31+
32+
<!-- Bean Validation / Hibernate Validator -->
33+
<hibernate-validator.version>5.2.4.Final</hibernate-validator.version>
34+
35+
<!-- Thymeleaf - Layout Dialect -->
36+
<thymeleaf-layout-dialect.version>2.0.1</thymeleaf-layout-dialect.version>
37+
38+
<!-- Logging -->
39+
<log4j.version>2.10.0</log4j.version>
40+
<jcl-over-slf4j.version>1.7.21</jcl-over-slf4j.version>
41+
42+
<!-- JPA / Hibernate -->
43+
<hibernate.version>5.1.0.Final</hibernate.version>
44+
45+
<!-- Spring Data JPA -->
46+
<spring-data-jpa.version>1.10.2.RELEASE</spring-data-jpa.version>
47+
48+
<!-- Jackson - JSON -->
49+
<jackson-core.version>2.9.2</jackson-core.version>
50+
51+
<!-- thumbnailator - Gerar Thumbnail -->
52+
<!-- https://github.com/coobird/thumbnailator -->
53+
<thumbnailator.version>0.4.8</thumbnailator.version>
54+
55+
<!-- Thymeleaf extras data attribute -->
56+
<thymeleaf-extras-data-attribute.version>2.0.1</thymeleaf-extras-data-attribute.version>
57+
58+
<!-- Apache Bean Utils -->
59+
<commons-beanutils.version>1.9.2</commons-beanutils.version>
60+
61+
<!-- Spring Security -->
62+
<spring-security.version>4.1.1.RELEASE</spring-security.version>
63+
64+
<!-- Thymeleaf - Extras Spring Security -->
65+
<thymeleaf-extras-springsecurity.version>3.0.0.RELEASE</thymeleaf-extras-springsecurity.version>
66+
67+
<!-- JUnit -->
68+
<junit.version>4.12</junit.version>
69+
70+
<!-- Java Mail -->
71+
<javax.mail.version>1.5.6</javax.mail.version>
72+
73+
<!-- AWS SDK - S3 -->
74+
<aws-java-sdk-s3.version>1.10.77</aws-java-sdk-s3.version>
75+
76+
<!-- Apache Commons DBCP -->
77+
<commons-dbcp2.version>2.1.1</commons-dbcp2.version>
78+
79+
<!-- JasperReports -->
80+
<jasperreports.version>6.3.0</jasperreports.version>
81+
82+
<!-- JasperReports Fonts -->
83+
<jasperreports-fonts.version>6.0.0</jasperreports-fonts.version>
84+
</properties>
85+
86+
<build>
87+
<finalName>${project.artifactId}</finalName>
88+
89+
<plugins>
90+
<plugin>
91+
<artifactId>maven-compiler-plugin</artifactId>
92+
<version>${maven-compiler-pluging.version}</version>
93+
<configuration>
94+
<source>${java.version}</source>
95+
<target>${java.version}</target>
96+
</configuration>
97+
</plugin>
98+
99+
<plugin>
100+
<groupId>org.flywaydb</groupId>
101+
<artifactId>flyway-maven-plugin</artifactId>
102+
<version>${flyway-maven-plugin.version}</version>
103+
<configuration>
104+
<driver>com.mysql.jdbc.Driver</driver>
105+
</configuration>
106+
</plugin>
107+
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-dependency-plugin</artifactId>
111+
<version>2.3</version>
112+
<executions>
113+
<execution>
114+
<phase>package</phase>
115+
<goals><goal>copy</goal></goals>
116+
<configuration>
117+
<artifactItems>
118+
<artifactItem>
119+
<groupId>com.github.jsimone</groupId>
120+
<artifactId>webapp-runner</artifactId>
121+
<version>8.0.30.2</version>
122+
<destFileName>webapp-runner.jar</destFileName>
123+
</artifactItem>
124+
</artifactItems>
125+
</configuration>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
</plugins>
130+
</build>
131+
132+
<profiles>
133+
<profile>
134+
<id>local</id>
135+
</profile>
136+
137+
<profile>
138+
<id>prod</id>
139+
140+
<activation>
141+
<activeByDefault>true</activeByDefault>
142+
</activation>
143+
144+
<dependencies>
145+
<!-- MySQL Driver -->
146+
<dependency>
147+
<groupId>mysql</groupId>
148+
<artifactId>mysql-connector-java</artifactId>
149+
<version>${mysql-connector-java.version}</version>
150+
<scope>compile</scope>
151+
</dependency>
152+
</dependencies>
153+
</profile>
154+
155+
</profiles>
156+
157+
<dependencyManagement>
158+
<dependencies>
159+
<dependency>
160+
<groupId>org.springframework</groupId>
161+
<artifactId>spring-framework-bom</artifactId>
162+
<version>${spring-framework.version}</version>
163+
<type>pom</type>
164+
<scope>import</scope>
165+
</dependency>
166+
</dependencies>
167+
</dependencyManagement>
168+
169+
<dependencies>
170+
<!-- Spring MVC -->
171+
<dependency>
172+
<groupId>org.springframework</groupId>
173+
<artifactId>spring-webmvc</artifactId>
174+
<scope>compile</scope>
175+
<exclusions>
176+
<exclusion>
177+
<groupId>commons-logging</groupId>
178+
<artifactId>commons-logging</artifactId>
179+
</exclusion>
180+
</exclusions>
181+
</dependency>
182+
183+
<!-- Servlet API -->
184+
<dependency>
185+
<groupId>javax.servlet</groupId>
186+
<artifactId>javax.servlet-api</artifactId>
187+
<version>${servlet.version}</version>
188+
<scope>provided</scope>
189+
</dependency>
190+
191+
<!-- Thymeleaf -->
192+
<dependency>
193+
<groupId>org.thymeleaf</groupId>
194+
<artifactId>thymeleaf</artifactId>
195+
<version>${thymeleaf.version}</version>
196+
<scope>compile</scope>
197+
</dependency>
198+
199+
<dependency>
200+
<groupId>org.thymeleaf</groupId>
201+
<artifactId>thymeleaf-spring4</artifactId>
202+
<version>${thymeleaf.version}</version>
203+
<scope>compile</scope>
204+
</dependency>
205+
206+
<!-- Bean Validation / Hibernate Validator -->
207+
<dependency>
208+
<groupId>org.hibernate</groupId>
209+
<artifactId>hibernate-validator</artifactId>
210+
<version>${hibernate-validator.version}</version>
211+
<scope>compile</scope>
212+
</dependency>
213+
214+
<!-- Thymeleaf - Layout Dialect -->
215+
<dependency>
216+
<groupId>nz.net.ultraq.thymeleaf</groupId>
217+
<artifactId>thymeleaf-layout-dialect</artifactId>
218+
<version>${thymeleaf-layout-dialect.version}</version>
219+
</dependency>
220+
221+
<!-- Logging -->
222+
<dependency>
223+
<groupId>org.apache.logging.log4j</groupId>
224+
<artifactId>log4j-slf4j-impl</artifactId>
225+
<version>${log4j.version}</version>
226+
</dependency>
227+
<dependency>
228+
<groupId>org.apache.logging.log4j</groupId>
229+
<artifactId>log4j-api</artifactId>
230+
<version>${log4j.version}</version>
231+
</dependency>
232+
<dependency>
233+
<groupId>org.apache.logging.log4j</groupId>
234+
<artifactId>log4j-core</artifactId>
235+
<version>${log4j.version}</version>
236+
</dependency>
237+
<dependency>
238+
<groupId>org.slf4j</groupId>
239+
<artifactId>jcl-over-slf4j</artifactId>
240+
<version>${jcl-over-slf4j.version}</version>
241+
</dependency>
242+
243+
<!-- JPA / Hibernate -->
244+
<dependency>
245+
<groupId>org.hibernate</groupId>
246+
<artifactId>hibernate-entitymanager</artifactId>
247+
<version>${hibernate.version}</version>
248+
<scope>compile</scope>
249+
</dependency>
250+
251+
<!-- Hibernate - Java 8 support -->
252+
<dependency>
253+
<groupId>org.hibernate</groupId>
254+
<artifactId>hibernate-java8</artifactId>
255+
<version>${hibernate.version}</version>
256+
<scope>compile</scope>
257+
</dependency>
258+
259+
<!-- Spring Data JPA -->
260+
<dependency>
261+
<groupId>org.springframework.data</groupId>
262+
<artifactId>spring-data-jpa</artifactId>
263+
<version>${spring-data-jpa.version}</version>
264+
<scope>compile</scope>
265+
</dependency>
266+
267+
<!-- Jackson - JSON -->
268+
<dependency>
269+
<groupId>com.fasterxml.jackson.core</groupId>
270+
<artifactId>jackson-databind</artifactId>
271+
<version>${jackson-core.version}</version>
272+
<scope>compile</scope>
273+
</dependency>
274+
275+
<!-- thumbnailator - Gerar Thumbnail -->
276+
<dependency>
277+
<groupId>net.coobird</groupId>
278+
<artifactId>thumbnailator</artifactId>
279+
<version>${thumbnailator.version}</version>
280+
<scope>compile</scope>
281+
</dependency>
282+
283+
<!-- Thymeleaf extras data attribute -->
284+
<dependency>
285+
<groupId>com.github.mxab.thymeleaf.extras</groupId>
286+
<artifactId>thymeleaf-extras-data-attribute</artifactId>
287+
<version>${thymeleaf-extras-data-attribute.version}</version>
288+
<scope>compile</scope>
289+
</dependency>
290+
291+
<!-- Spring Context Support -->
292+
<dependency>
293+
<groupId>org.springframework</groupId>
294+
<artifactId>spring-context-support</artifactId>
295+
<scope>compile</scope>
296+
</dependency>
297+
298+
<!-- Apache Bean Utils -->
299+
<dependency>
300+
<groupId>commons-beanutils</groupId>
301+
<artifactId>commons-beanutils</artifactId>
302+
<version>${commons-beanutils.version}</version>
303+
<scope>compile</scope>
304+
</dependency>
305+
306+
<!-- Spring Security -->
307+
<dependency>
308+
<groupId>org.springframework.security</groupId>
309+
<artifactId>spring-security-web</artifactId>
310+
<version>${spring-security.version}</version>
311+
<scope>compile</scope>
312+
</dependency>
313+
<dependency>
314+
<groupId>org.springframework.security</groupId>
315+
<artifactId>spring-security-config</artifactId>
316+
<version>${spring-security.version}</version>
317+
<scope>compile</scope>
318+
</dependency>
319+
320+
<!-- Thymeleaf - Extras Spring Security -->
321+
<dependency>
322+
<groupId>org.thymeleaf.extras</groupId>
323+
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
324+
<version>${thymeleaf-extras-springsecurity.version}</version>
325+
<scope>compile</scope>
326+
</dependency>
327+
328+
<!-- JUnit -->
329+
<dependency>
330+
<groupId>junit</groupId>
331+
<artifactId>junit</artifactId>
332+
<version>${junit.version}</version>
333+
<scope>test</scope>
334+
</dependency>
335+
336+
<!-- Java Mail -->
337+
<dependency>
338+
<groupId>com.sun.mail</groupId>
339+
<artifactId>javax.mail</artifactId>
340+
<version>${javax.mail.version}</version>
341+
<scope>compile</scope>
342+
</dependency>
343+
344+
<!-- AWS SDK - S3 -->
345+
<dependency>
346+
<groupId>com.amazonaws</groupId>
347+
<artifactId>aws-java-sdk-s3</artifactId>
348+
<version>${aws-java-sdk-s3.version}</version>
349+
</dependency>
350+
351+
<!-- Apache Commons DBCP -->
352+
<dependency>
353+
<groupId>org.apache.commons</groupId>
354+
<artifactId>commons-dbcp2</artifactId>
355+
<version>${commons-dbcp2.version}</version>
356+
<scope>compile</scope>
357+
</dependency>
358+
359+
<!-- JasperReports -->
360+
<dependency>
361+
<groupId>net.sf.jasperreports</groupId>
362+
<artifactId>jasperreports</artifactId>
363+
<version>${jasperreports.version}</version>
364+
<scope>compile</scope>
365+
</dependency>
366+
<dependency>
367+
<groupId>net.sf.jasperreports</groupId>
368+
<artifactId>jasperreports-fonts</artifactId>
369+
<version>${jasperreports-fonts.version}</version>
370+
<scope>compile</scope>
371+
</dependency>
372+
373+
</dependencies>
374+
375+
</project>

0 commit comments

Comments
 (0)