pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.4.4</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>io.agilehandy</groupId>
  13. <artifactId>blog-spring-cloud-gateway</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <packaging>pom</packaging>
  16. <name>blog-spring-cloud-gateway</name>
  17. <description>Blog Spring Cloud Gateway :: Parent</description>
  18. <properties>
  19. <java.version>11</java.version>
  20. <spring-cloud.version>2020.0.2</spring-cloud.version>
  21. <asciidoctor.maven.plugin.version>2.1.0</asciidoctor.maven.plugin.version>
  22. <spring-asciidoctor-backends.version>0.0.1-M1</spring-asciidoctor-backends.version>
  23. <builder>docker.io/paketobuildpacks/builder:base</builder>
  24. </properties>
  25. <dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.springframework.cloud</groupId>
  29. <artifactId>spring-cloud-dependencies</artifactId>
  30. <version>${spring-cloud.version}</version>
  31. <type>pom</type>
  32. <scope>import</scope>
  33. </dependency>
  34. </dependencies>
  35. </dependencyManagement>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-maven-plugin</artifactId>
  41. <configuration> <!-- build container image -->
  42. <image>
  43. <builder>${builder}</builder>
  44. <publish>true</publish>
  45. <name>localhost:5000/${project.artifactId}</name>
  46. </image>
  47. <docker>
  48. <publishRegistry>
  49. <username>registryIsNoSecured</username> <!-- registry is not secured, I put any thing for the plugin to work -->
  50. <password>registryIsNoSecured</password> <!-- registry is not secured, I put any thing for the plugin to work -->
  51. <url>http://localhost:5000</url> <!-- local registry on Kind -->
  52. <email>fake@somewhere.com</email> <!-- no needed for my local registry, I put any thing for the plugin to work -->
  53. </publishRegistry>
  54. </docker>
  55. <excludes>
  56. <exclude>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. </exclude>
  60. </excludes>
  61. </configuration>
  62. <executions>
  63. <execution>
  64. <goals>
  65. <goal>repackage</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <!-- formatting -->
  71. <plugin>
  72. <groupId>io.spring.javaformat</groupId>
  73. <artifactId>spring-javaformat-maven-plugin</artifactId>
  74. <version>0.0.27</version>
  75. <executions>
  76. <execution>
  77. <phase>validate</phase>
  78. <inherited>true</inherited>
  79. <goals>
  80. <goal>validate</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. </plugins>
  86. </build>
  87. <repositories>
  88. <repository>
  89. <id>spring-milestones</id>
  90. <name>Spring Milestones</name>
  91. <url>https://repo.spring.io/milestone</url>
  92. </repository>
  93. <repository>
  94. <id>spring-snapshots</id>
  95. <name>Spring Snapshots</name>
  96. <url>https://repo.spring.io/snapshot</url>
  97. <snapshots>
  98. <enabled>true</enabled>
  99. </snapshots>
  100. </repository>
  101. </repositories>
  102. <pluginRepositories>
  103. <pluginRepository>
  104. <id>spring-milestones</id>
  105. <name>Spring Milestones</name>
  106. <url>https://repo.spring.io/milestone</url>
  107. </pluginRepository>
  108. <pluginRepository>
  109. <id>spring-snapshots</id>
  110. <name>Spring Snapshots</name>
  111. <url>https://repo.spring.io/snapshot</url>
  112. <snapshots>
  113. <enabled>true</enabled>
  114. </snapshots>
  115. </pluginRepository>
  116. </pluginRepositories>
  117. <modules>
  118. <module>backend-service</module>
  119. <module>frontend-service</module>
  120. <module>gateway</module>
  121. <module>documentation</module>
  122. </modules>
  123. </project>