-
Notifications
You must be signed in to change notification settings - Fork 66
/
pom.xml
159 lines (137 loc) · 4.12 KB
/
pom.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- ~~~~~~~~~~~~~~~ -->
<!-- ~ COORDINATES ~ -->
<!-- ~~~~~~~~~~~~~~~ -->
<modelVersion>4.0.0</modelVersion>
<groupId>org.ff4j.samples</groupId>
<artifactId>ff4j-sample-springboot</artifactId>
<version>1.9-SNAPSHOT</version>
<packaging>jar</packaging>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>1.5.15.RELEASE</version>
<relativePath/>
</parent>
<!-- ~~~~~~~~~~~~~~ -->
<!-- ~ PROPERTIES ~ -->
<!-- ~~~~~~~~~~~~~~ -->
<properties>
<java.version>1.8</java.version>
<ff4j.version>1.9-SNAPSHOT</ff4j.version>
<junit.version>4.12</junit.version>
<docker.image.prefix>ff4j</docker.image.prefix>
<spring-boot.version>1.5.15.RELEASE</spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<docker.image.prefix>clunven</docker.image.prefix>
<docker.image.repository>clunven/ff4j</docker.image.repository>
<docker.image.tag>ff4j-sample-springboot</docker.image.tag>
</properties>
<!-- ~~~~~~~~~~~~~~~~ -->
<!-- ~ DEPENDENCIES ~ -->
<!-- ~~~~~~~~~~~~~~~~ -->
<dependencies>
<!-- Servlet -->
<dependency>
<artifactId>ff4j-web</artifactId>
<groupId>org.ff4j</groupId>
<version>${ff4j.version}</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ff4j</groupId>
<artifactId>ff4j-utils-json</artifactId>
<version>${ff4j.version}</version>
</dependency>
<!-- REST API (with springwebmvc) -->
<dependency>
<artifactId>ff4j-spring-boot-web-api</artifactId>
<groupId>org.ff4j</groupId>
<version>${ff4j.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Client HTTP for test -->
<dependency>
<groupId>org.ff4j</groupId>
<artifactId>ff4j-webapi-jersey2x</artifactId>
<version>${ff4j.version}</version>
</dependency>
<!-- Support for tests -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.8.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.7</version>
<configuration>
<repository>${docker.image.repository}</repository>
<tag>${docker.image.tag}</tag>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</project>