|
1 | | -<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"> |
| 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"> |
2 | 3 | <modelVersion>4.0.0</modelVersion> |
3 | 4 |
|
4 | 5 | <groupId>com.stackify</groupId> |
|
9 | 10 | <description>Stackify API for Java</description> |
10 | 11 | <url>https://github.com/stackify/stackify-api-java</url> |
11 | 12 |
|
12 | | - <parent> |
13 | | - <groupId>org.sonatype.oss</groupId> |
14 | | - <artifactId>oss-parent</artifactId> |
15 | | - <version>9</version> |
16 | | - </parent> |
17 | | - |
18 | 13 | <licenses> |
19 | 14 | <license> |
20 | 15 | <name>The Apache Software License, Version 2.0</name> |
|
46 | 41 |
|
47 | 42 | <properties> |
48 | 43 | <java.version>1.8</java.version> |
| 44 | + <slf4j-api.version>1.7.28</slf4j-api.version> |
| 45 | + <jackson.version>2.7.9</jackson.version> |
| 46 | + <jackson-databind.version>2.7.9.6</jackson-databind.version> |
| 47 | + <httpclient.version>4.5.9</httpclient.version> |
| 48 | + <junixsocket.version>2.2.0</junixsocket.version> |
| 49 | + <failsafe.version>2.3.0</failsafe.version> |
| 50 | + <protobuf.version>3.9.1</protobuf.version> |
| 51 | + <lombok.version>1.18.8</lombok.version> |
| 52 | + <junit.version>4.11</junit.version> |
| 53 | + <mockito.version>1.9.5</mockito.version> |
| 54 | + <powermock.version>1.5.6</powermock.version> |
49 | 55 | </properties> |
50 | 56 |
|
51 | 57 | <dependencies> |
|
55 | 61 | <dependency> |
56 | 62 | <groupId>org.slf4j</groupId> |
57 | 63 | <artifactId>slf4j-api</artifactId> |
58 | | - <version>1.7.28</version> |
| 64 | + <version>${slf4j-api.version}</version> |
59 | 65 | </dependency> |
60 | 66 |
|
61 | 67 | <dependency> |
62 | 68 | <groupId>com.fasterxml.jackson.core</groupId> |
63 | 69 | <artifactId>jackson-core</artifactId> |
64 | | - <version>2.7.9</version> |
| 70 | + <version>${jackson.version}</version> |
65 | 71 | </dependency> |
66 | 72 |
|
67 | 73 | <dependency> |
68 | 74 | <groupId>com.fasterxml.jackson.core</groupId> |
69 | 75 | <artifactId>jackson-annotations</artifactId> |
70 | | - <version>2.7.9</version> |
| 76 | + <version>${jackson.version}</version> |
71 | 77 | </dependency> |
72 | 78 |
|
73 | 79 | <dependency> |
74 | 80 | <groupId>com.fasterxml.jackson.core</groupId> |
75 | 81 | <artifactId>jackson-databind</artifactId> |
76 | | - <version>2.7.9.6</version> |
77 | | - </dependency> |
78 | | - |
79 | | - <dependency> |
80 | | - <groupId>com.google.protobuf</groupId> |
81 | | - <artifactId>protobuf-java</artifactId> |
82 | | - <version>3.9.1</version> |
| 82 | + <version>${jackson-databind.version}</version> |
83 | 83 | </dependency> |
84 | 84 |
|
85 | 85 | <dependency> |
86 | 86 | <groupId>org.apache.httpcomponents</groupId> |
87 | 87 | <artifactId>httpclient</artifactId> |
88 | | - <version>4.5.9</version> |
| 88 | + <version>${httpclient.version}</version> |
89 | 89 | </dependency> |
90 | 90 |
|
91 | 91 | <dependency> |
92 | 92 | <groupId>com.kohlschutter.junixsocket</groupId> |
93 | 93 | <artifactId>junixsocket-common</artifactId> |
94 | | - <version>2.2.0</version> |
| 94 | + <version>${junixsocket.version}</version> |
95 | 95 | </dependency> |
96 | 96 |
|
97 | 97 | <dependency> |
98 | 98 | <groupId>com.kohlschutter.junixsocket</groupId> |
99 | 99 | <artifactId>junixsocket-native-common</artifactId> |
100 | | - <version>2.2.0</version> |
| 100 | + <version>${junixsocket.version}</version> |
101 | 101 | </dependency> |
102 | 102 |
|
103 | 103 | <dependency> |
104 | 104 | <groupId>net.jodah</groupId> |
105 | 105 | <artifactId>failsafe</artifactId> |
106 | | - <version>2.3.0</version> |
| 106 | + <version>${failsafe.version}</version> |
| 107 | + </dependency> |
| 108 | + |
| 109 | + <dependency> |
| 110 | + <groupId>com.google.protobuf</groupId> |
| 111 | + <artifactId>protobuf-java</artifactId> |
| 112 | + <version>${protobuf.version}</version> |
107 | 113 | </dependency> |
108 | 114 |
|
109 | 115 | <!-- Provided dependencies --> |
110 | 116 |
|
111 | 117 | <dependency> |
112 | 118 | <groupId>org.projectlombok</groupId> |
113 | 119 | <artifactId>lombok</artifactId> |
114 | | - <version>1.18.8</version> |
| 120 | + <version>${lombok.version}</version> |
115 | 121 | <scope>provided</scope> |
116 | 122 | </dependency> |
117 | 123 |
|
|
122 | 128 | <dependency> |
123 | 129 | <groupId>org.slf4j</groupId> |
124 | 130 | <artifactId>slf4j-log4j12</artifactId> |
125 | | - <version>1.7.28</version> |
| 131 | + <version>${slf4j-api.version}</version> |
126 | 132 | <scope>test</scope> |
127 | 133 | </dependency> |
128 | 134 |
|
129 | 135 | <dependency> |
130 | 136 | <groupId>junit</groupId> |
131 | 137 | <artifactId>junit</artifactId> |
132 | | - <version>4.11</version> |
| 138 | + <version>${junit.version}</version> |
133 | 139 | <scope>test</scope> |
134 | 140 | </dependency> |
135 | 141 |
|
136 | 142 | <dependency> |
137 | 143 | <groupId>org.mockito</groupId> |
138 | 144 | <artifactId>mockito-core</artifactId> |
139 | | - <version>1.9.5</version> |
| 145 | + <version>${mockito.version}</version> |
140 | 146 | <scope>test</scope> |
141 | 147 | </dependency> |
142 | 148 |
|
143 | 149 | <dependency> |
144 | 150 | <groupId>org.powermock</groupId> |
145 | 151 | <artifactId>powermock-core</artifactId> |
146 | | - <version>1.5.6</version> |
| 152 | + <version>${powermock.version}</version> |
147 | 153 | <scope>test</scope> |
148 | 154 | </dependency> |
149 | 155 |
|
150 | 156 | <dependency> |
151 | 157 | <groupId>org.powermock</groupId> |
152 | 158 | <artifactId>powermock-module-junit4</artifactId> |
153 | | - <version>1.5.6</version> |
| 159 | + <version>${powermock.version}</version> |
154 | 160 | <scope>test</scope> |
155 | 161 | </dependency> |
156 | 162 |
|
157 | 163 | <dependency> |
158 | 164 | <groupId>org.powermock</groupId> |
159 | 165 | <artifactId>powermock-api-mockito</artifactId> |
160 | | - <version>1.5.6</version> |
| 166 | + <version>${powermock.version}</version> |
161 | 167 | <scope>test</scope> |
162 | 168 | </dependency> |
163 | 169 |
|
|
172 | 178 | </resource> |
173 | 179 | </resources> |
174 | 180 |
|
175 | | - <extensions> |
176 | | - <extension> |
177 | | - <groupId>org.apache.maven.wagon</groupId> |
178 | | - <artifactId>wagon-webdav-jackrabbit</artifactId> |
179 | | - <version>2.2</version> |
180 | | - </extension> |
181 | | - </extensions> |
182 | | - |
183 | 181 | <plugins> |
184 | 182 |
|
185 | 183 | <plugin> |
|
231 | 229 | </executions> |
232 | 230 | </plugin> |
233 | 231 |
|
| 232 | + <plugin> |
| 233 | + <groupId>org.apache.maven.plugins</groupId> |
| 234 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 235 | + <version>1.0</version> |
| 236 | + <executions> |
| 237 | + <execution> |
| 238 | + <id>enforce-bytecode-version</id> |
| 239 | + <goals> |
| 240 | + <goal>enforce</goal> |
| 241 | + </goals> |
| 242 | + <configuration> |
| 243 | + <rules> |
| 244 | + <enforceBytecodeVersion> |
| 245 | + <maxJdkVersion>${java.version}</maxJdkVersion> |
| 246 | + </enforceBytecodeVersion> |
| 247 | + </rules> |
| 248 | + <fail>true</fail> |
| 249 | + </configuration> |
| 250 | + </execution> |
| 251 | + </executions> |
| 252 | + <dependencies> |
| 253 | + <dependency> |
| 254 | + <groupId>org.codehaus.mojo</groupId> |
| 255 | + <artifactId>extra-enforcer-rules</artifactId> |
| 256 | + <version>1.2</version> |
| 257 | + </dependency> |
| 258 | + </dependencies> |
| 259 | + </plugin> |
| 260 | + |
234 | 261 | </plugins> |
235 | 262 |
|
236 | 263 | </build> |
|
0 commit comments