|
11 | 11 | <groupId>com.amigoscode</groupId> |
12 | 12 | <artifactId>jfs</artifactId> |
13 | 13 | <version>0.0.1-SNAPSHOT</version> |
| 14 | + <packaging>jar</packaging> |
14 | 15 | <name>java-springboot-full-stack</name> |
15 | 16 | <description>java-springboot-full-stack</description> |
16 | 17 | <url/> |
|
28 | 29 | </scm> |
29 | 30 | <properties> |
30 | 31 | <java.version>21</java.version> |
| 32 | + <docker.username>amigoscode</docker.username> |
| 33 | + <docker.image.name>product-service</docker.image.name> |
| 34 | + <docker.image.tag/> |
31 | 35 | </properties> |
32 | 36 | <dependencies> |
33 | 37 | <dependency> |
|
40 | 44 | <artifactId>spring-boot-starter-test</artifactId> |
41 | 45 | <scope>test</scope> |
42 | 46 | </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>org.springframework.boot</groupId> |
| 49 | + <artifactId>spring-boot-starter-web</artifactId> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.postgresql</groupId> |
| 53 | + <artifactId>postgresql</artifactId> |
| 54 | + <scope>runtime</scope> |
| 55 | + </dependency> |
| 56 | + <dependency> |
| 57 | + <groupId>org.springframework.boot</groupId> |
| 58 | + <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>org.springframework.boot</groupId> |
| 62 | + <artifactId>spring-boot-starter-validation</artifactId> |
| 63 | + </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>org.flywaydb</groupId> |
| 66 | + <artifactId>flyway-core</artifactId> |
| 67 | + </dependency> |
| 68 | + <dependency> |
| 69 | + <groupId>org.flywaydb</groupId> |
| 70 | + <artifactId>flyway-database-postgresql</artifactId> |
| 71 | + </dependency> |
| 72 | + <dependency> |
| 73 | + <groupId>org.testcontainers</groupId> |
| 74 | + <artifactId>junit-jupiter</artifactId> |
| 75 | + </dependency> |
| 76 | + <dependency> |
| 77 | + <groupId>org.testcontainers</groupId> |
| 78 | + <artifactId>postgresql</artifactId> |
| 79 | + </dependency> |
| 80 | + <dependency> |
| 81 | + <groupId>org.springframework.boot</groupId> |
| 82 | + <artifactId>spring-boot-testcontainers</artifactId> |
| 83 | + </dependency> |
| 84 | + <dependency> |
| 85 | + <groupId>org.springframework.boot</groupId> |
| 86 | + <artifactId>spring-boot-starter-webflux</artifactId> |
| 87 | + <scope>test</scope> |
| 88 | + </dependency> |
43 | 89 | </dependencies> |
44 | 90 |
|
45 | 91 | <build> |
| 92 | + <finalName>product-service</finalName> |
46 | 93 | <plugins> |
47 | 94 | <plugin> |
48 | 95 | <groupId>org.springframework.boot</groupId> |
49 | 96 | <artifactId>spring-boot-maven-plugin</artifactId> |
50 | 97 | </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>com.google.cloud.tools</groupId> |
| 100 | + <artifactId>jib-maven-plugin</artifactId> |
| 101 | + <version>3.3.2</version> |
| 102 | + <configuration> |
| 103 | + <from> |
| 104 | + <image>eclipse-temurin:21-jre</image> |
| 105 | + <platforms> |
| 106 | + <platrom> |
| 107 | + <architecture>amd64</architecture> |
| 108 | + <os>linux</os> |
| 109 | + </platrom> |
| 110 | + <platrom> |
| 111 | + <architecture>arm64</architecture> |
| 112 | + <os>linux</os> |
| 113 | + </platrom> |
| 114 | + </platforms> |
| 115 | + </from> |
| 116 | + <to> |
| 117 | + <image>docker.io/${docker.username}/${docker.image.name}:${docker.image.tag}</image> |
| 118 | + <tags> |
| 119 | + <tag>latest</tag> |
| 120 | + </tags> |
| 121 | + </to> |
| 122 | + </configuration> |
| 123 | + </plugin> |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-surefire-plugin</artifactId> |
| 127 | + <configuration> |
| 128 | + <excludes> |
| 129 | + <exclude>**/*IntegrationTest.java</exclude> |
| 130 | + <exclude>**/*IT.java</exclude> |
| 131 | + </excludes> |
| 132 | + </configuration> |
| 133 | + </plugin> |
| 134 | + <plugin> |
| 135 | + <groupId>org.apache.maven.plugins</groupId> |
| 136 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 137 | + <configuration> |
| 138 | + <includes> |
| 139 | + <include>**/*IntegrationTest.java</include> |
| 140 | + <include>**/*IT.java</include> |
| 141 | + </includes> |
| 142 | + </configuration> |
| 143 | + </plugin> |
51 | 144 | </plugins> |
52 | 145 | </build> |
53 | 146 |
|
|
0 commit comments