|
5 | 5 |
|
6 | 6 | <groupId>com.github.rawsanj</groupId> |
7 | 7 | <artifactId>spring-redis-websocket</artifactId> |
8 | | - <version>2.4.6</version> |
| 8 | + <version>2.5.2</version> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 |
|
11 | 11 | <name>spring-redis-websocket</name> |
|
14 | 14 | <parent> |
15 | 15 | <groupId>org.springframework.boot</groupId> |
16 | 16 | <artifactId>spring-boot-starter-parent</artifactId> |
17 | | - <version>2.4.6</version> |
| 17 | + <version>2.5.2</version> |
18 | 18 | <relativePath/> <!-- lookup parent from repository --> |
19 | 19 | </parent> |
20 | 20 |
|
21 | 21 | <properties> |
22 | 22 | <java.version>11</java.version> |
23 | 23 | <registry.image.name>rawsanj/spring-redis-websocket</registry.image.name> |
24 | | - <start-class> |
25 | | - com.github.rawsanj.SpringRedisWebSocketApplication |
26 | | - </start-class> |
27 | 24 | <skipNativeImage>true</skipNativeImage> |
28 | | - <spring-native.version>0.9.2</spring-native.version> |
29 | | - <testcontainers.version>1.15.2</testcontainers.version> |
| 25 | + <testcontainers.version>1.15.3</testcontainers.version> |
30 | 26 | </properties> |
31 | 27 |
|
32 | 28 | <dependencies> |
|
63 | 59 | <artifactId>spring-boot-starter-test</artifactId> |
64 | 60 | <scope>test</scope> |
65 | 61 | </dependency> |
66 | | - |
| 62 | + |
67 | 63 | <dependency> |
68 | 64 | <groupId>io.projectreactor</groupId> |
69 | 65 | <artifactId>reactor-test</artifactId> |
|
129 | 125 | <profile> |
130 | 126 | <id>native</id> |
131 | 127 |
|
| 128 | + <properties> |
| 129 | + <skipNativeImage>true</skipNativeImage> |
| 130 | + <spring-native.version>0.10.1</spring-native.version> |
| 131 | + </properties> |
| 132 | + |
132 | 133 | <dependencies> |
133 | 134 | <!--Graal Native Image Dependencies--> |
134 | 135 | <dependency> |
|
140 | 141 |
|
141 | 142 | <build> |
142 | 143 | <plugins> |
143 | | - <plugin> |
144 | | - <artifactId>maven-antrun-plugin</artifactId> |
145 | | - <executions> |
146 | | - <execution> |
147 | | - <id>make-native-image-config-folder</id> |
148 | | - <phase>test-compile</phase> |
149 | | - <configuration> |
150 | | - <target> |
151 | | - <mkdir dir="target/classes/META-INF/native-image"/> |
152 | | - </target> |
153 | | - </configuration> |
154 | | - <goals> |
155 | | - <goal>run</goal> |
156 | | - </goals> |
157 | | - </execution> |
158 | | - </executions> |
159 | | - </plugin> |
160 | 144 | <plugin> |
161 | 145 | <groupId>org.apache.maven.plugins</groupId> |
162 | 146 | <artifactId>maven-surefire-plugin</artifactId> |
163 | 147 | <configuration> |
164 | 148 | <argLine> |
165 | | - -Dorg.graalvm.nativeimage.imagecode=agent -Dspring.xml.ignore=true |
166 | | - -Dspring.spel.ignore=true |
167 | | - -agentlib:native-image-agent=access-filter-file=target/classes/access-filter.json,config-merge-dir=target/classes/META-INF/native-image |
| 149 | + -DspringAot=true -agentlib:native-image-agent=access-filter-file=target/classes/access-filter.json,config-merge-dir=target/classes/META-INF/native-image |
168 | 150 | </argLine> |
169 | 151 | <includes> |
170 | | - <include>**/SpringRedisWebSocketApplicationIT.java</include> |
| 152 | +<!-- <include>**/SpringRedisWebSocketApplicationIT.java</include>--> |
171 | 153 | </includes> |
172 | 154 | </configuration> |
173 | 155 | </plugin> |
174 | 156 | <plugin> |
175 | | - <groupId>org.graalvm.nativeimage</groupId> |
176 | | - <artifactId>native-image-maven-plugin</artifactId> |
177 | | - <version>21.0.0.2</version> |
| 157 | + <groupId>org.graalvm.buildtools</groupId> |
| 158 | + <artifactId>native-maven-plugin</artifactId> |
| 159 | + <version>0.9.0</version> |
178 | 160 | <configuration> |
179 | 161 | <mainClass>com.github.rawsanj.SpringRedisWebSocketApplication</mainClass> |
180 | 162 | <imageName>${project.artifactId}</imageName> |
181 | 163 | <buildArgs> |
| 164 | + -DspringAot=true |
| 165 | + -Dspring.xml.ignore=true |
182 | 166 | -Dspring.spel.ignore=true |
183 | 167 | -Dspring.native.remove-yaml-support=true |
184 | 168 | </buildArgs> |
|
187 | 171 | <executions> |
188 | 172 | <execution> |
189 | 173 | <goals> |
190 | | - <goal>native-image</goal> |
| 174 | + <goal>build</goal> |
191 | 175 | </goals> |
192 | 176 | <phase>package</phase> |
193 | 177 | </execution> |
|
204 | 188 | <env> |
205 | 189 | <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> |
206 | 190 | <BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS> |
| 191 | + -DspringAot=true |
| 192 | + -Dspring.xml.ignore=true |
207 | 193 | -Dspring.spel.ignore=true |
208 | 194 | -Dspring.native.remove-yaml-support=true |
209 | 195 | </BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS> |
|
215 | 201 | <groupId>org.springframework.experimental</groupId> |
216 | 202 | <artifactId>spring-aot-maven-plugin</artifactId> |
217 | 203 | <version>${spring-native.version}</version> |
218 | | - <configuration> |
219 | | - <mode>native-agent</mode> |
220 | | - </configuration> |
221 | 204 | <executions> |
222 | 205 | <execution> |
223 | 206 | <id>test-generate</id> |
|
0 commit comments