pom.xml 23.3 KB
Newer Older
I
Ilkka Seppala 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
B
Boris 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!-- The MIT License Copyright © 2014-2019 Ilkka Seppälä Permission is hereby
	granted, free of charge, to any person obtaining a copy of this software
	and associated documentation files (the "Software"), to deal in the Software
	without restriction, including without limitation the rights to use, copy,
	modify, merge, publish, distribute, sublicense, and/or sell copies of the
	Software, and to permit persons to whom the Software is furnished to do so,
	subject to the following conditions: The above copyright notice and this
	permission notice shall be included in all copies or substantial portions
	of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
	KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
	NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
	DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
	ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16 17
	DEALINGS IN THE SOFTWARE. -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
A
Azureyjt 已提交
18 19 20 21 22
         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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.iluwatar</groupId>
    <artifactId>java-design-patterns</artifactId>
23
    <version>1.24.0-SNAPSHOT</version>
A
Azureyjt 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    <packaging>pom</packaging>
    <inceptionYear>2014-2019</inceptionYear>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <hibernate.version>5.2.18.Final</hibernate.version>
        <spring.version>5.0.13.RELEASE</spring.version>
        <spring-boot.version>2.0.9.RELEASE</spring-boot.version>
        <spring-data.version>2.0.14.RELEASE</spring-data.version>
        <h2.version>1.4.190</h2.version>
        <junit.version>4.12</junit.version>
        <junit-jupiter.version>5.5.2</junit-jupiter.version>
        <junit-vintage.version>${junit.version}.2</junit-vintage.version>
        <sping-test-junit5.version>1.0.2</sping-test-junit5.version>
        <compiler.version>3.8.1</compiler.version>
        <jacoco.version>0.8.4</jacoco.version>
        <commons-dbcp.version>1.4</commons-dbcp.version>
        <camel.version>2.24.0</camel.version>
        <guava.version>19.0</guava.version>
A
Amit Garg 已提交
42
        <mockito.version>3.5.6</mockito.version>
A
Azureyjt 已提交
43 44
        <htmlunit.version>2.22</htmlunit.version>
        <guice.version>4.0</guice.version>
45
        <mongo-java-driver.version>3.12.1</mongo-java-driver.version>
46
        <slf4j.version>1.7.30</slf4j.version>
A
Azureyjt 已提交
47 48 49 50
        <logback.version>1.2.3</logback.version>
        <aws-lambda-core.version>1.1.0</aws-lambda-core.version>
        <aws-java-sdk-dynamodb.version>1.11.289</aws-java-sdk-dynamodb.version>
        <aws-lambda-java-events.version>2.0.1</aws-lambda-java-events.version>
51
        <jackson.version>2.10.2</jackson.version>
A
Azureyjt 已提交
52 53 54
        <jaxb-api.version>2.3.1</jaxb-api.version>
        <jaxb-impl.version>2.3.2</jaxb-impl.version>
        <annotation-api.version>1.3.2</annotation-api.version>
55
        <system-lambda.version>1.1.0</system-lambda.version>
56
        <urm.version>2.0.0</urm.version>
57
        <mockito-junit-jupiter.version>3.5.0</mockito-junit-jupiter.version>
I
Ilkka Seppälä 已提交
58 59 60
        <!-- SonarCloud -->
        <sonar.host.url>https://sonarcloud.io</sonar.host.url>
        <sonar.organization>iluwatar</sonar.organization>
I
Ilkka Seppälä 已提交
61
        <sonar.projectKey>iluwatar_java-design-patterns</sonar.projectKey>
62
        <sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
I
Ilkka Seppälä 已提交
63
        <sonar.projectName>Java Design Patterns</sonar.projectName>
A
Azureyjt 已提交
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
    </properties>
    <modules>
        <module>abstract-factory</module>
        <module>tls</module>
        <module>builder</module>
        <module>factory-method</module>
        <module>prototype</module>
        <module>singleton</module>
        <module>adapter</module>
        <module>bridge</module>
        <module>composite</module>
        <module>dao</module>
        <module>data-mapper</module>
        <module>decorator</module>
        <module>facade</module>
        <module>flyweight</module>
        <module>proxy</module>
        <module>chain</module>
        <module>command</module>
        <module>interpreter</module>
        <module>iterator</module>
        <module>mediator</module>
        <module>memento</module>
        <module>model-view-presenter</module>
        <module>observer</module>
        <module>state</module>
        <module>strategy</module>
        <module>template-method</module>
92
        <module>version-number</module>
A
Azureyjt 已提交
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 186 187 188
        <module>visitor</module>
        <module>double-checked-locking</module>
        <module>servant</module>
        <module>service-locator</module>
        <module>null-object</module>
        <module>event-aggregator</module>
        <module>callback</module>
        <module>execute-around</module>
        <module>property</module>
        <module>intercepting-filter</module>
        <module>producer-consumer</module>
        <module>pipeline</module>
        <module>poison-pill</module>
        <module>reader-writer-lock</module>
        <module>lazy-loading</module>
        <module>service-layer</module>
        <module>specification</module>
        <module>tolerant-reader</module>
        <module>model-view-controller</module>
        <module>flux</module>
        <module>double-dispatch</module>
        <module>multiton</module>
        <module>resource-acquisition-is-initialization</module>
        <module>thread-pool</module>
        <module>twin</module>
        <module>private-class-data</module>
        <module>object-pool</module>
        <module>dependency-injection</module>
        <module>naked-objects</module>
        <module>front-controller</module>
        <module>repository</module>
        <module>async-method-invocation</module>
        <module>monostate</module>
        <module>step-builder</module>
        <module>business-delegate</module>
        <module>half-sync-half-async</module>
        <module>layers</module>
        <module>eip-message-channel</module>
        <module>fluentinterface</module>
        <module>reactor</module>
        <module>caching</module>
        <module>eip-publish-subscribe</module>
        <module>delegation</module>
        <module>event-driven-architecture</module>
        <module>api-gateway</module>
        <module>factory-kit</module>
        <module>feature-toggle</module>
        <module>value-object</module>
        <module>module</module>
        <module>monad</module>
        <module>mute-idiom</module>
        <module>mutex</module>
        <module>semaphore</module>
        <module>hexagonal</module>
        <module>abstract-document</module>
        <module>aggregator-microservices</module>
        <module>promise</module>
        <module>page-object</module>
        <module>event-asynchronous</module>
        <module>event-queue</module>
        <module>queue-load-leveling</module>
        <module>object-mother</module>
        <module>data-bus</module>
        <module>converter</module>
        <module>guarded-suspension</module>
        <module>balking</module>
        <module>extension-objects</module>
        <module>marker</module>
        <module>cqrs</module>
        <module>event-sourcing</module>
        <module>data-transfer-object</module>
        <module>throttling</module>
        <module>unit-of-work</module>
        <module>partial-response</module>
        <module>eip-wire-tap</module>
        <module>eip-splitter</module>
        <module>eip-aggregator</module>
        <module>retry</module>
        <module>dirty-flag</module>
        <module>trampoline</module>
        <module>serverless</module>
        <module>ambassador</module>
        <module>acyclic-visitor</module>
        <module>collection-pipeline</module>
        <module>master-worker-pattern</module>
        <module>spatial-partition</module>
        <module>priority-queue</module>
        <module>commander</module>
        <module>typeobjectpattern</module>
        <module>bytecode</module>
        <module>leader-election</module>
        <module>data-locality</module>
        <module>subclass-sandbox</module>
        <module>circuit-breaker</module>
        <module>role-object</module>
        <module>saga</module>
B
Boris 已提交
189 190 191
        <module>double-buffer</module>
        <module>sharding</module>
        <module>game-loop</module>
A
Azureyjt 已提交
192 193
        <module>combinator</module>
        <module>update-method</module>
194
        <module>leader-followers</module>
Z
ZhouSky 已提交
195
        <module>strangler</module>
196
        <module>arrange-act-assert</module>
A
#1321  
Ashish Trivedi 已提交
197
        <module>transaction-script</module>
V
Vivek Singh 已提交
198
        <module>registry</module>
M
Michal Krzywanski 已提交
199
        <module>filterer</module>
S
Samil Ayoub 已提交
200
        <module>factory</module>
201
        <module>separated-interface</module>
202
        <module>data-transfer-object-enum-impl</module>
B
Boris 已提交
203
    </modules>
204

B
Boris 已提交
205 206 207 208 209 210
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
211

A
Azureyjt 已提交
212 213
    <dependencyManagement>
        <dependencies>
A
Amit Garg 已提交
214 215 216 217 218 219 220 221 222 223 224 225
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>1.9.7</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>1.9.7</version>
                <scope>test</scope>
            </dependency>
A
Azureyjt 已提交
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-core</artifactId>
                <version>${hibernate.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring-boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.data</groupId>
                <artifactId>spring-data-jpa</artifactId>
                <version>${spring-data.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>${h2.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-dbcp</groupId>
                <artifactId>commons-dbcp</artifactId>
                <version>${commons-dbcp.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-core</artifactId>
                <version>${camel.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-stream</artifactId>
                <version>${camel.version}</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-api</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-migrationsupport</artifactId>
                <version>${junit-jupiter.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
                <version>${junit-vintage.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.github.sbrannen</groupId>
                <artifactId>spring-test-junit5</artifactId>
                <version>${sping-test-junit5.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>
            <dependency>
                <groupId>net.sourceforge.htmlunit</groupId>
                <artifactId>htmlunit</artifactId>
                <version>${htmlunit.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.inject</groupId>
                <artifactId>guice</artifactId>
                <version>${guice.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mongodb</groupId>
                <artifactId>mongo-java-driver</artifactId>
                <version>${mongo-java-driver.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${jaxb-api.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${annotation-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.bind</groupId>
                <artifactId>jaxb-impl</artifactId>
                <version>${jaxb-impl.version}</version>
            </dependency>
            <dependency>
                <groupId>org.javassist</groupId>
                <artifactId>javassist</artifactId>
354
                <version>3.26.0-GA</version>
A
Azureyjt 已提交
355 356 357
            </dependency>
            <dependency>
                <groupId>com.github.stefanbirkner</groupId>
358 359
                <artifactId>system-lambda</artifactId>
                <version>${system-lambda.version}</version>
A
Azureyjt 已提交
360 361 362 363
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
364

A
Azureyjt 已提交
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-core</artifactId>
            <version>${logback.version}</version>
        </dependency>
    </dependencies>
382

A
Azureyjt 已提交
383 384 385 386 387 388
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
A
#1321  
Ashish_Trivedi 已提交
389
                    <version>${compiler.version}</version>
A
Azureyjt 已提交
390 391 392 393 394 395 396 397
                    <configuration>
                        <source>11</source>
                        <target>11</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
398
                    <version>3.0.0-M5</version>
A
Azureyjt 已提交
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426
                </plugin>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <version>${spring-boot.version}</version>
                </plugin>
                <!-- Maven assembly plugin template for all child project to follow -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>single</goal>
                            </goals>
                            <configuration>
                                <descriptorRefs>
                                    <descriptorRef>jar-with-dependencies</descriptorRef>
                                </descriptorRefs>
                                <!-- below two line make sure the fat jar is sharing the same name
                                    as of project name -->
                                <finalName>${project.artifactId}</finalName>
                                <appendAssemblyId>false</appendAssemblyId>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
I
Ilkka Seppälä 已提交
427 428 429 430 431
                <plugin>
                    <groupId>org.sonarsource.scanner.maven</groupId>
                    <artifactId>sonar-maven-plugin</artifactId>
                    <version>3.7.0.1746</version>
                </plugin>
A
Azureyjt 已提交
432 433
            </plugins>
        </pluginManagement>
434

A
Azureyjt 已提交
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>validate</id>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <phase>validate</phase>
                        <configuration>
                            <configLocation>google_checks.xml</configLocation>
                            <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
                            <encoding>UTF-8</encoding>
                            <failOnViolation>true</failOnViolation>
                            <violationSeverity>warning</violationSeverity>
                            <includeTestSourceDirectory>false</includeTestSourceDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
458

A
Azureyjt 已提交
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
            <!-- Resolves ${projectRoot} to the project root directory. Used by the
                license-maven-plugin to find the correct location of license-plugin-header-style.xml
                when built from a submodule directory. -->
            <plugin>
                <groupId>org.commonjava.maven.plugins</groupId>
                <artifactId>directory-maven-plugin</artifactId>
                <version>0.3.1</version>
                <executions>
                    <execution>
                        <id>directories</id>
                        <goals>
                            <goal>directory-of</goal>
                        </goals>
                        <phase>initialize</phase>
                        <configuration>
                            <property>projectRoot</property>
                            <project>
                                <groupId>com.iluwatar</groupId>
                                <artifactId>java-design-patterns</artifactId>
                            </project>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.mycila</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <header>com/mycila/maven/plugin/license/templates/MIT.txt</header>
                    <properties>
                        <owner>Ilkka Seppälä</owner>
                    </properties>
                    <skipExistingHeaders>true</skipExistingHeaders>
                    <headerDefinitions>
494
                        <headerDefinition>license-plugin-header-style.xml</headerDefinition>
A
Azureyjt 已提交
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
                    </headerDefinitions>
                    <mapping>
                        <java>SLASHSTAR_CUSTOM_STYLE</java>
                    </mapping>
                    <excludes>
                        <exclude>.github/FUNDING.yml</exclude>
                    </excludes>
                </configuration>
                <executions>
                    <execution>
                        <id>install-format</id>
                        <phase>install</phase>
                        <goals>
                            <goal>format</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
I
Ilkka Seppala 已提交
513

A
Azureyjt 已提交
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco.version}</version>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557

            <plugin>
                <groupId>com.iluwatar.urm</groupId>
                <artifactId>urm-maven-plugin</artifactId>
                <version>1.4.8</version>
                <configuration>
                    <!-- if outputDirectory is not set explicitly it will default to your build dir -->
                    <outputDirectory>${project.basedir}/etc</outputDirectory>
                    <packages>
                        <param>com.iluwatar</param>
                    </packages>
                    <includeMainDirectory>true</includeMainDirectory>
                    <includeTestDirectory>false</includeTestDirectory>
                    <presenter>plantuml</presenter>
                </configuration>
                <executions>
                    <execution>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>map</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

A
Azureyjt 已提交
558 559
        </plugins>
    </build>
A
#1321  
Ashish Trivedi 已提交
560
</project>