|
5 | 5 |
|
6 | 6 | <groupId>com.github.rawsanj</groupId> |
7 | 7 | <artifactId>spring-redis-websocket</artifactId> |
8 | | - <version>2.5.2</version> |
| 8 | + <version>3.0.1</version> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 |
|
11 | 11 | <name>spring-redis-websocket</name> |
12 | | - <description>Spring Boot Project for WebSocket Notification/Chat using Redis Pub/Sub - Java 11</description> |
| 12 | + <description>Spring Boot 3.x - Project for WebSocket Notification/Chat using Redis Pub/Sub - Java 17</description> |
13 | 13 |
|
14 | 14 | <parent> |
15 | 15 | <groupId>org.springframework.boot</groupId> |
16 | 16 | <artifactId>spring-boot-starter-parent</artifactId> |
17 | | - <version>2.5.2</version> |
| 17 | + <version>3.0.1</version> |
18 | 18 | <relativePath/> <!-- lookup parent from repository --> |
19 | 19 | </parent> |
20 | 20 |
|
21 | 21 | <properties> |
22 | | - <java.version>11</java.version> |
| 22 | + <java.version>17</java.version> |
23 | 23 | <registry.image.name>rawsanj/spring-redis-websocket</registry.image.name> |
24 | 24 | <skipNativeImage>true</skipNativeImage> |
25 | | - <testcontainers.version>1.15.3</testcontainers.version> |
| 25 | + <testcontainers.version>1.17.6</testcontainers.version> |
26 | 26 | </properties> |
27 | 27 |
|
28 | 28 | <dependencies> |
|
49 | 49 | <optional>true</optional> |
50 | 50 | </dependency> |
51 | 51 |
|
52 | | - <dependency> |
53 | | - <groupId>org.springframework</groupId> |
54 | | - <artifactId>spring-context-indexer</artifactId> |
55 | | - </dependency> |
56 | | - |
57 | 52 | <dependency> |
58 | 53 | <groupId>org.springframework.boot</groupId> |
59 | 54 | <artifactId>spring-boot-starter-test</artifactId> |
|
86 | 81 | </dependencies> |
87 | 82 | </dependencyManagement> |
88 | 83 |
|
89 | | - <repositories> |
90 | | - <repository> |
91 | | - <id>spring-releases</id> |
92 | | - <name>Spring Releases</name> |
93 | | - <url>https://repo.spring.io/release</url> |
94 | | - <snapshots> |
95 | | - <enabled>false</enabled> |
96 | | - </snapshots> |
97 | | - </repository> |
98 | | - </repositories> |
99 | | - <pluginRepositories> |
100 | | - <pluginRepository> |
101 | | - <id>spring-releases</id> |
102 | | - <name>Spring Releases</name> |
103 | | - <url>https://repo.spring.io/release</url> |
104 | | - <snapshots> |
105 | | - <enabled>false</enabled> |
106 | | - </snapshots> |
107 | | - </pluginRepository> |
108 | | - </pluginRepositories> |
109 | | - |
110 | 84 | <build> |
111 | 85 | <plugins> |
112 | 86 | <plugin> |
|
117 | 91 | <name>${registry.image.name}:${project.version}-webflux</name> |
118 | 92 | </image> |
119 | 93 | </configuration> |
| 94 | + <executions> |
| 95 | + <execution> |
| 96 | + <id>process-aot</id> |
| 97 | + <goals> |
| 98 | + <goal>process-aot</goal> |
| 99 | + </goals> |
| 100 | + </execution> |
| 101 | + </executions> |
120 | 102 | </plugin> |
121 | 103 | </plugins> |
122 | 104 | </build> |
|
127 | 109 |
|
128 | 110 | <properties> |
129 | 111 | <skipNativeImage>true</skipNativeImage> |
130 | | - <spring-native.version>0.10.1</spring-native.version> |
131 | 112 | </properties> |
132 | 113 |
|
133 | | - <dependencies> |
134 | | - <!--Graal Native Image Dependencies--> |
135 | | - <dependency> |
136 | | - <groupId>org.springframework.experimental</groupId> |
137 | | - <artifactId>spring-native</artifactId> |
138 | | - <version>${spring-native.version}</version> |
139 | | - </dependency> |
140 | | - </dependencies> |
141 | | - |
142 | 114 | <build> |
143 | 115 | <plugins> |
144 | 116 | <plugin> |
145 | | - <groupId>org.apache.maven.plugins</groupId> |
146 | | - <artifactId>maven-surefire-plugin</artifactId> |
147 | | - <configuration> |
148 | | - <argLine> |
149 | | - -DspringAot=true -agentlib:native-image-agent=access-filter-file=target/classes/access-filter.json,config-merge-dir=target/classes/META-INF/native-image |
150 | | - </argLine> |
151 | | - <includes> |
152 | | -<!-- <include>**/SpringRedisWebSocketApplicationIT.java</include>--> |
153 | | - </includes> |
154 | | - </configuration> |
155 | | - </plugin> |
156 | | - <plugin> |
157 | | - <groupId>org.graalvm.buildtools</groupId> |
158 | | - <artifactId>native-maven-plugin</artifactId> |
159 | | - <version>0.9.0</version> |
| 117 | + <groupId>org.springframework.boot</groupId> |
| 118 | + <artifactId>spring-boot-maven-plugin</artifactId> |
160 | 119 | <configuration> |
161 | | - <mainClass>com.github.rawsanj.SpringRedisWebSocketApplication</mainClass> |
162 | | - <imageName>${project.artifactId}</imageName> |
163 | | - <buildArgs> |
164 | | - -DspringAot=true |
165 | | - -Dspring.xml.ignore=true |
166 | | - -Dspring.spel.ignore=true |
167 | | - -Dspring.native.remove-yaml-support=true |
168 | | - </buildArgs> |
169 | | - <skip>${skipNativeImage}</skip> |
| 120 | + <image> |
| 121 | + <name>${registry.image.name}:${project.version}-native</name> |
| 122 | + </image> |
170 | 123 | </configuration> |
171 | 124 | <executions> |
172 | 125 | <execution> |
| 126 | + <id>process-aot</id> |
173 | 127 | <goals> |
174 | | - <goal>build</goal> |
| 128 | + <goal>process-aot</goal> |
175 | 129 | </goals> |
176 | | - <phase>package</phase> |
177 | 130 | </execution> |
178 | 131 | </executions> |
179 | 132 | </plugin> |
180 | 133 | <plugin> |
181 | | - <groupId>org.springframework.boot</groupId> |
182 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
183 | | - <version>${project.parent.version}</version> |
| 134 | + <groupId>org.graalvm.buildtools</groupId> |
| 135 | + <artifactId>native-maven-plugin</artifactId> |
184 | 136 | <configuration> |
185 | | - <image> |
186 | | - <name>${registry.image.name}:${project.version}-native</name> |
187 | | - <builder>paketobuildpacks/builder:tiny</builder> |
188 | | - <env> |
189 | | - <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> |
190 | | - <BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS> |
191 | | - -DspringAot=true |
192 | | - -Dspring.xml.ignore=true |
193 | | - -Dspring.spel.ignore=true |
194 | | - -Dspring.native.remove-yaml-support=true |
195 | | - </BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS> |
196 | | - </env> |
197 | | - </image> |
| 137 | + <skip>${skipNativeImage}</skip> |
198 | 138 | </configuration> |
199 | | - </plugin> |
200 | | - <plugin> |
201 | | - <groupId>org.springframework.experimental</groupId> |
202 | | - <artifactId>spring-aot-maven-plugin</artifactId> |
203 | | - <version>${spring-native.version}</version> |
204 | 139 | <executions> |
205 | 140 | <execution> |
206 | | - <id>test-generate</id> |
207 | | - <goals> |
208 | | - <goal>test-generate</goal> |
209 | | - </goals> |
210 | | - </execution> |
211 | | - <execution> |
212 | | - <id>generate</id> |
| 141 | + <id>build-native-binary</id> |
213 | 142 | <goals> |
214 | | - <goal>generate</goal> |
| 143 | + <goal>compile-no-fork</goal> |
215 | 144 | </goals> |
216 | 145 | </execution> |
217 | 146 | </executions> |
|
0 commit comments