|
19 | 19 |
|
20 | 20 | <groupId>com.bernardomg.tabletop</groupId> |
21 | 21 | <artifactId>dice-cli</artifactId> |
22 | | - <version>1.2.3</version> |
| 22 | + <version>1.2.4</version> |
23 | 23 | <packaging>jar</packaging> |
24 | 24 |
|
25 | 25 | <name>Dice Notation Tools CLI</name> |
|
133 | 133 | <!-- ============================================== --> |
134 | 134 | <!-- =========== DEPENDENCIES VERSIONS ============ --> |
135 | 135 | <!-- ============================================== --> |
| 136 | + <bernardomg.cli.maniferVersion>1.0.0</bernardomg.cli.maniferVersion> |
136 | 137 | <dice.version>2.2.3</dice.version> |
137 | 138 | <guava.version>31.1-jre</guava.version> |
138 | 139 | <junit.jupiter.version>5.9.2</junit.jupiter.version> |
| 140 | + <log4j.version>2.19.0</log4j.version> |
| 141 | + <lombok.version>1.18.26</lombok.version> |
139 | 142 | <picocli.version>4.7.1</picocli.version> |
140 | | - <spring.boot.version>2.7.8</spring.boot.version> |
| 143 | + <slf4j.version>2.0.6</slf4j.version> |
141 | 144 | <!-- ============================================== --> |
142 | 145 | <!-- ============== PLUGINS VERSIONS ============== --> |
143 | 146 | <!-- ============================================== --> |
144 | | - <plugin.spring.boot.version>${spring.boot.version}</plugin.spring.boot.version> |
| 147 | + <plugin.shade.version>3.4.1</plugin.shade.version> |
145 | 148 | <!-- ============================================== --> |
146 | 149 | <!-- ============ PLUGIN CONFIGURATION ============ --> |
147 | 150 | <!-- ============================================== --> |
|
167 | 170 |
|
168 | 171 | <dependencyManagement> |
169 | 172 | <dependencies> |
170 | | - <dependency> |
171 | | - <!-- Spring Boot Dependencies BOM --> |
172 | | - <groupId>org.springframework.boot</groupId> |
173 | | - <artifactId>spring-boot-dependencies</artifactId> |
174 | | - <version>${spring.boot.version}</version> |
175 | | - <type>pom</type> |
176 | | - <scope>import</scope> |
177 | | - </dependency> |
178 | 173 | <dependency> |
179 | 174 | <!-- JUnit BOM --> |
180 | 175 | <groupId>org.junit</groupId> |
|
193 | 188 | <artifactId>guava</artifactId> |
194 | 189 | <version>${guava.version}</version> |
195 | 190 | </dependency> |
196 | | - <dependency> |
197 | | - <!-- picocli --> |
198 | | - <groupId>info.picocli</groupId> |
199 | | - <artifactId>picocli</artifactId> |
200 | | - <version>${picocli.version}</version> |
201 | | - </dependency> |
202 | 191 | <dependency> |
203 | 192 | <!-- Dice --> |
204 | 193 | <groupId>com.bernardomg.tabletop</groupId> |
|
213 | 202 | </exclusions> |
214 | 203 | </dependency> |
215 | 204 | <!-- ============================================== --> |
| 205 | + <!-- ==================== CLI ===================== --> |
| 206 | + <!-- ============================================== --> |
| 207 | + <dependency> |
| 208 | + <!-- picocli --> |
| 209 | + <groupId>info.picocli</groupId> |
| 210 | + <artifactId>picocli</artifactId> |
| 211 | + <version>${picocli.version}</version> |
| 212 | + </dependency> |
| 213 | + <dependency> |
| 214 | + <!-- Manifest version provider --> |
| 215 | + <groupId>com.bernardomg.cli</groupId> |
| 216 | + <artifactId>picocli-manifest-version-provider</artifactId> |
| 217 | + <version>${bernardomg.cli.maniferVersion}</version> |
| 218 | + </dependency> |
| 219 | + <!-- ============================================== --> |
216 | 220 | <!-- ================== LOMBOK ==================== --> |
217 | 221 | <!-- ============================================== --> |
218 | 222 | <dependency> |
219 | 223 | <!-- Lombok --> |
220 | 224 | <groupId>org.projectlombok</groupId> |
221 | 225 | <artifactId>lombok</artifactId> |
| 226 | + <version>${lombok.version}</version> |
222 | 227 | <scope>provided</scope> |
223 | 228 | </dependency> |
224 | 229 | <!-- ============================================== --> |
|
228 | 233 | <!-- SLF4J API --> |
229 | 234 | <groupId>org.slf4j</groupId> |
230 | 235 | <artifactId>slf4j-api</artifactId> |
| 236 | + <version>${slf4j.version}</version> |
231 | 237 | </dependency> |
232 | 238 | <dependency> |
233 | 239 | <!-- Log4j SLF4J Bridge --> |
234 | 240 | <groupId>org.apache.logging.log4j</groupId> |
235 | | - <artifactId>log4j-slf4j-impl</artifactId> |
| 241 | + <artifactId>log4j-slf4j2-impl</artifactId> |
| 242 | + <version>${log4j.version}</version> |
236 | 243 | </dependency> |
237 | 244 | <dependency> |
238 | 245 | <!-- Log4j core --> |
239 | 246 | <groupId>org.apache.logging.log4j</groupId> |
240 | 247 | <artifactId>log4j-core</artifactId> |
| 248 | + <version>${log4j.version}</version> |
241 | 249 | </dependency> |
242 | 250 | <!-- ============================================== --> |
243 | 251 | <!-- ======= TEST ENVIRONMENT DEPENDENCIES ======== --> |
|
254 | 262 | <artifactId>junit-platform-runner</artifactId> |
255 | 263 | <scope>test</scope> |
256 | 264 | </dependency> |
257 | | - <dependency> |
258 | | - <!-- Mockito --> |
259 | | - <groupId>org.mockito</groupId> |
260 | | - <artifactId>mockito-core</artifactId> |
261 | | - <scope>test</scope> |
262 | | - </dependency> |
263 | 265 | </dependencies> |
264 | 266 |
|
265 | 267 | <!-- ********************************************** --> |
|
271 | 273 | <pluginManagement> |
272 | 274 | <plugins> |
273 | 275 | <plugin> |
274 | | - <!-- Spring Boot --> |
275 | | - <groupId>org.springframework.boot</groupId> |
276 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
277 | | - <version>${plugin.spring.boot.version}</version> |
| 276 | + <!-- Shade --> |
| 277 | + <groupId>org.apache.maven.plugins</groupId> |
| 278 | + <artifactId>maven-shade-plugin</artifactId> |
| 279 | + <version>${plugin.shade.version}</version> |
278 | 280 | </plugin> |
279 | 281 | </plugins> |
280 | 282 | </pluginManagement> |
|
322 | 324 | </configuration> |
323 | 325 | </plugin> |
324 | 326 | <plugin> |
325 | | - <!-- Site --> |
326 | | - <!-- Generates the Maven Site --> |
| 327 | + <!-- Shade --> |
327 | 328 | <groupId>org.apache.maven.plugins</groupId> |
328 | | - <artifactId>maven-site-plugin</artifactId> |
329 | | - <dependencies> |
330 | | - <dependency> |
331 | | - <!-- Docs Maven Skin --> |
332 | | - <groupId>com.bernardomg.maven.skins</groupId> |
333 | | - <artifactId>docs-maven-skin</artifactId> |
334 | | - <version>${site.skin.version}</version> |
335 | | - </dependency> |
336 | | - </dependencies> |
337 | | - </plugin> |
338 | | - <plugin> |
339 | | - <!-- Spring Boot --> |
340 | | - <groupId>org.springframework.boot</groupId> |
341 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
| 329 | + <artifactId>maven-shade-plugin</artifactId> |
342 | 330 | <executions> |
343 | 331 | <execution> |
344 | 332 | <goals> |
345 | | - <goal>repackage</goal> |
| 333 | + <goal>shade</goal> |
346 | 334 | </goals> |
347 | 335 | <configuration> |
348 | | - <classifier>spring-boot</classifier> |
349 | | - <mainClass>${main.path}</mainClass> |
| 336 | + <finalName>${exec.file.name}</finalName> |
| 337 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 338 | + <transformers> |
| 339 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 340 | + <mainClass>${main.path}</mainClass> |
| 341 | + <manifestEntries> |
| 342 | + <Multi-Release>true</Multi-Release> |
| 343 | + </manifestEntries> |
| 344 | + </transformer> |
| 345 | + </transformers> |
| 346 | + <filters> |
| 347 | + <filter> |
| 348 | + <artifact>*:*</artifact> |
| 349 | + <excludes> |
| 350 | + <exclude>META-INF/*.SF</exclude> |
| 351 | + <exclude>META-INF/*.DSA</exclude> |
| 352 | + <exclude>META-INF/*.RSA</exclude> |
| 353 | + </excludes> |
| 354 | + </filter> |
| 355 | + </filters> |
350 | 356 | </configuration> |
351 | 357 | </execution> |
352 | 358 | </executions> |
353 | 359 | </plugin> |
354 | 360 | <plugin> |
355 | | - <!-- Antrun --> |
| 361 | + <!-- Site --> |
| 362 | + <!-- Generates the Maven Site --> |
356 | 363 | <groupId>org.apache.maven.plugins</groupId> |
357 | | - <artifactId>maven-antrun-plugin</artifactId> |
358 | | - <executions> |
359 | | - <execution> |
360 | | - <phase>package</phase> |
361 | | - <configuration> |
362 | | - <target> |
363 | | - <copy file="${project.build.directory}/${project.build.finalName}-spring-boot.jar" tofile="${project.build.directory}/${exec.file.name}.jar" /> |
364 | | - </target> |
365 | | - </configuration> |
366 | | - <goals> |
367 | | - <goal>run</goal> |
368 | | - </goals> |
369 | | - </execution> |
370 | | - </executions> |
| 364 | + <artifactId>maven-site-plugin</artifactId> |
| 365 | + <dependencies> |
| 366 | + <dependency> |
| 367 | + <!-- Docs Maven Skin --> |
| 368 | + <groupId>com.bernardomg.maven.skins</groupId> |
| 369 | + <artifactId>docs-maven-skin</artifactId> |
| 370 | + <version>${site.skin.version}</version> |
| 371 | + </dependency> |
| 372 | + </dependencies> |
371 | 373 | </plugin> |
372 | 374 | </plugins> |
373 | 375 | </build> |
|
0 commit comments