30
30
*/
31
31
public final class NativeImageResourcePatternsBuildItem extends MultiBuildItem {
32
32
33
+ @ Deprecated (since = "3.29" , forRemoval = true )
33
34
private final List <String > excludePatterns ;
34
35
35
36
private final List <String > includePatterns ;
@@ -39,6 +40,12 @@ private NativeImageResourcePatternsBuildItem(List<String> includePatterns, List<
39
40
this .excludePatterns = excludePatterns ;
40
41
}
41
42
43
+ /**
44
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
45
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for
46
+ * JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
47
+ */
48
+ @ Deprecated (since = "3.29" , forRemoval = true )
42
49
public List <String > getExcludePatterns () {
43
50
return excludePatterns ;
44
51
}
@@ -52,6 +59,7 @@ public static Builder builder() {
52
59
}
53
60
54
61
public static class Builder {
62
+ @ Deprecated (since = "3.29" , forRemoval = true )
55
63
private List <String > excludePatterns = new ArrayList <>();
56
64
private List <String > includePatterns = new ArrayList <>();
57
65
@@ -72,7 +80,12 @@ public NativeImageResourcePatternsBuildItem build() {
72
80
*
73
81
* @param glob the glob pattern to add to the list of patterns to exclude
74
82
* @return this {@link Builder}
83
+ *
84
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
85
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
86
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
75
87
*/
88
+ @ Deprecated (since = "3.29" , forRemoval = true )
76
89
public Builder excludeGlob (String glob ) {
77
90
excludePatterns .add (GlobUtil .toRegexPattern (glob ));
78
91
return this ;
@@ -87,7 +100,12 @@ public Builder excludeGlob(String glob) {
87
100
*
88
101
* @param globs the glob patterns to add to the list of patterns to exclude
89
102
* @return this {@link Builder}
103
+ *
104
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
105
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
106
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
90
107
*/
108
+ @ Deprecated (since = "3.29" , forRemoval = true )
91
109
public Builder excludeGlobs (Collection <String > globs ) {
92
110
globs .stream ().map (GlobUtil ::toRegexPattern ).forEach (excludePatterns ::add );
93
111
return this ;
@@ -102,7 +120,12 @@ public Builder excludeGlobs(Collection<String> globs) {
102
120
*
103
121
* @param globs the glob patterns to add to the list of patterns to exclude
104
122
* @return this {@link Builder}
123
+ *
124
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
125
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
126
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
105
127
*/
128
+ @ Deprecated (since = "3.29" , forRemoval = true )
106
129
public Builder excludeGlobs (String ... globs ) {
107
130
Stream .of (globs ).map (GlobUtil ::toRegexPattern ).forEach (excludePatterns ::add );
108
131
return this ;
@@ -116,7 +139,12 @@ public Builder excludeGlobs(String... globs) {
116
139
*
117
140
* @param pattern the regular expression to add to the list of patterns to exclude
118
141
* @return this {@link Builder}
142
+ *
143
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
144
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
145
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
119
146
*/
147
+ @ Deprecated (since = "3.29" , forRemoval = true )
120
148
public Builder excludePattern (String pattern ) {
121
149
excludePatterns .add (pattern );
122
150
return this ;
@@ -130,7 +158,12 @@ public Builder excludePattern(String pattern) {
130
158
*
131
159
* @param patterns the regular expressions to add to the list of patterns to exclude
132
160
* @return this {@link Builder}
161
+ *
162
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
163
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
164
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
133
165
*/
166
+ @ Deprecated (since = "3.29" , forRemoval = true )
134
167
public Builder excludePatterns (Collection <String > patterns ) {
135
168
excludePatterns .addAll (patterns );
136
169
return this ;
@@ -144,7 +177,12 @@ public Builder excludePatterns(Collection<String> patterns) {
144
177
*
145
178
* @param patterns the regular expressions to add to the list of patterns to exclude
146
179
* @return this {@link Builder}
180
+ *
181
+ * @deprecated Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM
182
+ * 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1
183
+ * for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
147
184
*/
185
+ @ Deprecated (since = "3.29" , forRemoval = true )
148
186
public Builder excludePatterns (String ... patterns ) {
149
187
Stream .of (patterns ).forEach (excludePatterns ::add );
150
188
return this ;
@@ -187,8 +225,8 @@ public Builder includeGlobs(Collection<String> globs) {
187
225
* @param globs the glob patterns to add
188
226
* @return this {@link Builder}
189
227
*/
190
- public Builder includeGlobs (String ... patterns ) {
191
- Stream .of (patterns ).map (GlobUtil ::toRegexPattern ).forEach (includePatterns ::add );
228
+ public Builder includeGlobs (String ... globs ) {
229
+ Stream .of (globs ).map (GlobUtil ::toRegexPattern ).forEach (includePatterns ::add );
192
230
return this ;
193
231
}
194
232
@@ -199,7 +237,12 @@ public Builder includeGlobs(String... patterns) {
199
237
*
200
238
* @param pattern the regular expression to add
201
239
* @return this {@link Builder}
240
+ *
241
+ * @deprecated Including resources using patterns is not supported in the new reachability-metadata.json file used with
242
+ * Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for
243
+ * Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
202
244
*/
245
+ @ Deprecated (since = "3.29" , forRemoval = true )
203
246
public Builder includePattern (String pattern ) {
204
247
includePatterns .add (pattern );
205
248
return this ;
@@ -212,7 +255,12 @@ public Builder includePattern(String pattern) {
212
255
*
213
256
* @param patterns the regular expressions to add
214
257
* @return this {@link Builder}
258
+ *
259
+ * @deprecated Including resources using patterns is not supported in the new reachability-metadata.json file used with
260
+ * Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for
261
+ * Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
215
262
*/
263
+ @ Deprecated (since = "3.29" , forRemoval = true )
216
264
public Builder includePatterns (Collection <String > patterns ) {
217
265
includePatterns .addAll (patterns );
218
266
return this ;
@@ -225,7 +273,12 @@ public Builder includePatterns(Collection<String> patterns) {
225
273
*
226
274
* @param patterns the regular expressions to add
227
275
* @return this {@link Builder}
276
+ *
277
+ * @deprecated Including resources using patterns is not supported in the new reachability-metadata.json file used with
278
+ * Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for
279
+ * Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
228
280
*/
281
+ @ Deprecated (since = "3.29" , forRemoval = true )
229
282
public Builder includePatterns (String ... patterns ) {
230
283
Stream .of (patterns ).forEach (includePatterns ::add );
231
284
return this ;
0 commit comments