|
27 | 27 | </dependencies> |
28 | 28 | </dependencyManagement> |
29 | 29 |
|
30 | | - <dependencies> |
31 | | - <dependency> |
32 | | - <groupId>ch.qos.logback</groupId> |
33 | | - <artifactId>logback-classic</artifactId> |
34 | | - </dependency> |
35 | | - <dependency> |
36 | | - <groupId>ch.qos.logback</groupId> |
37 | | - <artifactId>logback-core</artifactId> |
38 | | - </dependency> |
39 | | - <dependency> |
40 | | - <groupId>org.slf4j</groupId> |
41 | | - <artifactId>slf4j-api</artifactId> |
42 | | - </dependency> |
43 | | - <dependency> |
44 | | - <groupId>org.slf4j</groupId> |
45 | | - <artifactId>jcl-over-slf4j</artifactId> |
46 | | - </dependency> |
47 | | - <dependency> |
48 | | - <groupId>org.springframework.boot</groupId> |
49 | | - <artifactId>spring-boot-starter-test</artifactId> |
50 | | - <scope>test</scope> |
51 | | - </dependency> |
52 | | - </dependencies> |
53 | | - |
54 | 30 | <build> |
55 | | - <pluginManagement> |
56 | | - <plugins> |
57 | | - <plugin> |
58 | | - <groupId>org.apache.maven.plugins</groupId> |
59 | | - <artifactId>maven-clean-plugin</artifactId> |
60 | | - <version>${maven-clean-plugin.version}</version> |
61 | | - </plugin> |
62 | | - <plugin> |
63 | | - <groupId>org.apache.maven.plugins</groupId> |
64 | | - <artifactId>maven-compiler-plugin</artifactId> |
65 | | - <version>${maven-compiler-plugin.version}</version> |
66 | | - </plugin> |
67 | | - <plugin> |
68 | | - <groupId>org.apache.maven.plugins</groupId> |
69 | | - <artifactId>maven-jar-plugin</artifactId> |
70 | | - <version>${maven-jar-plugin.version}</version> |
71 | | - <configuration> |
72 | | - <archive> |
73 | | - <manifest> |
74 | | - <mainClass>${start-class}</mainClass> |
75 | | - <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
76 | | - </manifest> |
77 | | - </archive> |
78 | | - </configuration> |
79 | | - </plugin> |
80 | | - <plugin> |
81 | | - <groupId>org.apache.maven.plugins</groupId> |
82 | | - <artifactId>maven-surefire-plugin</artifactId> |
83 | | - <version>${maven-surefire-plugin.version}</version> |
84 | | - </plugin> |
85 | | - <plugin> |
86 | | - <groupId>org.apache.maven.plugins</groupId> |
87 | | - <artifactId>maven-resources-plugin</artifactId> |
88 | | - <version>${maven-resources-plugin.version}</version> |
89 | | - </plugin> |
90 | | - <plugin> |
91 | | - <groupId>org.graalvm.buildtools</groupId> |
92 | | - <artifactId>native-maven-plugin</artifactId> |
93 | | - <version>${native-build-tools-plugin.version}</version> |
94 | | - <extensions>true</extensions> |
95 | | - </plugin> |
96 | | - <plugin> |
97 | | - <groupId>org.springframework.boot</groupId> |
98 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
99 | | - <version>${spring-boot.version}</version> |
100 | | - <configuration> |
101 | | - <mainClass>${start-class}</mainClass> |
102 | | - </configuration> |
103 | | - </plugin> |
104 | | - </plugins> |
105 | | - </pluginManagement> |
106 | 31 | <plugins> |
107 | 32 | <plugin> |
108 | 33 | <groupId>org.springframework.boot</groupId> |
109 | 34 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 35 | + <version>${spring-boot.version}</version> |
110 | 36 | <executions> |
111 | 37 | <execution> |
112 | 38 | <id>repackage</id> |
|
119 | 45 | </plugins> |
120 | 46 | </build> |
121 | 47 |
|
122 | | - <profiles> |
123 | | - <profile> |
124 | | - <id>native</id> |
125 | | - <build> |
126 | | - <plugins> |
127 | | - <plugin> |
128 | | - <groupId>org.springframework.boot</groupId> |
129 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
130 | | - <configuration> |
131 | | - <image> |
132 | | - <builder>paketobuildpacks/builder:tiny</builder> |
133 | | - <env> |
134 | | - <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> |
135 | | - </env> |
136 | | - </image> |
137 | | - </configuration> |
138 | | - <executions> |
139 | | - <execution> |
140 | | - <id>process-aot</id> |
141 | | - <goals> |
142 | | - <goal>process-aot</goal> |
143 | | - </goals> |
144 | | - </execution> |
145 | | - </executions> |
146 | | - </plugin> |
147 | | - <plugin> |
148 | | - <groupId>org.graalvm.buildtools</groupId> |
149 | | - <artifactId>native-maven-plugin</artifactId> |
150 | | - <configuration> |
151 | | - <classesDirectory>${project.build.outputDirectory}</classesDirectory> |
152 | | - <metadataRepository> |
153 | | - <enabled>true</enabled> |
154 | | - </metadataRepository> |
155 | | - <requiredVersion>22.3</requiredVersion> |
156 | | - </configuration> |
157 | | - <executions> |
158 | | - <execution> |
159 | | - <id>add-reachability-metadata</id> |
160 | | - <goals> |
161 | | - <goal>add-reachability-metadata</goal> |
162 | | - </goals> |
163 | | - </execution> |
164 | | - </executions> |
165 | | - </plugin> |
166 | | - </plugins> |
167 | | - </build> |
168 | | - </profile> |
169 | | - <profile> |
170 | | - <id>nativeTest</id> |
171 | | - <dependencies> |
172 | | - <dependency> |
173 | | - <groupId>org.junit.platform</groupId> |
174 | | - <artifactId>junit-platform-launcher</artifactId> |
175 | | - <scope>test</scope> |
176 | | - </dependency> |
177 | | - </dependencies> |
178 | | - <build> |
179 | | - <plugins> |
180 | | - <plugin> |
181 | | - <groupId>org.springframework.boot</groupId> |
182 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
183 | | - <executions> |
184 | | - <execution> |
185 | | - <id>process-test-aot</id> |
186 | | - <goals> |
187 | | - <goal>process-test-aot</goal> |
188 | | - </goals> |
189 | | - </execution> |
190 | | - </executions> |
191 | | - </plugin> |
192 | | - <plugin> |
193 | | - <groupId>org.graalvm.buildtools</groupId> |
194 | | - <artifactId>native-maven-plugin</artifactId> |
195 | | - <configuration> |
196 | | - <classesDirectory>${project.build.outputDirectory}</classesDirectory> |
197 | | - <metadataRepository> |
198 | | - <enabled>true</enabled> |
199 | | - </metadataRepository> |
200 | | - <requiredVersion>22.3</requiredVersion> |
201 | | - </configuration> |
202 | | - <executions> |
203 | | - <execution> |
204 | | - <id>native-test</id> |
205 | | - <goals> |
206 | | - <goal>test</goal> |
207 | | - </goals> |
208 | | - </execution> |
209 | | - </executions> |
210 | | - </plugin> |
211 | | - </plugins> |
212 | | - </build> |
213 | | - </profile> |
214 | | - </profiles> |
215 | | - |
216 | 48 | <properties> |
217 | | - <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
218 | | - <maven-compiler-plugin.version>3.14.1</maven-compiler-plugin.version> |
219 | | - <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> |
220 | | - <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
221 | | - <maven-surefire-plugin.version>3.5.4</maven-surefire-plugin.version> |
222 | | - <native-build-tools-plugin.version>0.10.1</native-build-tools-plugin.version> |
223 | 49 | <spring-boot.version>4.0.0-M3</spring-boot.version> |
224 | | - <start-class>com.example.MainApplication</start-class> |
225 | 50 | </properties> |
226 | 51 |
|
227 | 52 | </project> |
0 commit comments