3030 */ 
3131public  final  class  NativeImageResourcePatternsBuildItem  extends  MultiBuildItem  {
3232
33+     @ Deprecated (since  = "3.29" , forRemoval  = true )
3334    private  final  List <String > excludePatterns ;
3435
3536    private  final  List <String > includePatterns ;
@@ -39,6 +40,12 @@ private NativeImageResourcePatternsBuildItem(List<String> includePatterns, List<
3940        this .excludePatterns  = excludePatterns ;
4041    }
4142
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 )
4249    public  List <String > getExcludePatterns () {
4350        return  excludePatterns ;
4451    }
@@ -52,6 +59,7 @@ public static Builder builder() {
5259    }
5360
5461    public  static  class  Builder  {
62+         @ Deprecated (since  = "3.29" , forRemoval  = true )
5563        private  List <String > excludePatterns  = new  ArrayList <>();
5664        private  List <String > includePatterns  = new  ArrayList <>();
5765
@@ -72,7 +80,12 @@ public NativeImageResourcePatternsBuildItem build() {
7280         * 
7381         * @param glob the glob pattern to add to the list of patterns to exclude 
7482         * @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) 
7587         */ 
88+         @ Deprecated (since  = "3.29" , forRemoval  = true )
7689        public  Builder  excludeGlob (String  glob ) {
7790            excludePatterns .add (GlobUtil .toRegexPattern (glob ));
7891            return  this ;
@@ -87,7 +100,12 @@ public Builder excludeGlob(String glob) {
87100         * 
88101         * @param globs the glob patterns to add to the list of patterns to exclude 
89102         * @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) 
90107         */ 
108+         @ Deprecated (since  = "3.29" , forRemoval  = true )
91109        public  Builder  excludeGlobs (Collection <String > globs ) {
92110            globs .stream ().map (GlobUtil ::toRegexPattern ).forEach (excludePatterns ::add );
93111            return  this ;
@@ -102,7 +120,12 @@ public Builder excludeGlobs(Collection<String> globs) {
102120         * 
103121         * @param globs the glob patterns to add to the list of patterns to exclude 
104122         * @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) 
105127         */ 
128+         @ Deprecated (since  = "3.29" , forRemoval  = true )
106129        public  Builder  excludeGlobs (String ... globs ) {
107130            Stream .of (globs ).map (GlobUtil ::toRegexPattern ).forEach (excludePatterns ::add );
108131            return  this ;
@@ -116,7 +139,12 @@ public Builder excludeGlobs(String... globs) {
116139         * 
117140         * @param pattern the regular expression to add to the list of patterns to exclude 
118141         * @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) 
119146         */ 
147+         @ Deprecated (since  = "3.29" , forRemoval  = true )
120148        public  Builder  excludePattern (String  pattern ) {
121149            excludePatterns .add (pattern );
122150            return  this ;
@@ -130,7 +158,12 @@ public Builder excludePattern(String pattern) {
130158         * 
131159         * @param patterns the regular expressions to add to the list of patterns to exclude 
132160         * @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) 
133165         */ 
166+         @ Deprecated (since  = "3.29" , forRemoval  = true )
134167        public  Builder  excludePatterns (Collection <String > patterns ) {
135168            excludePatterns .addAll (patterns );
136169            return  this ;
@@ -144,7 +177,12 @@ public Builder excludePatterns(Collection<String> patterns) {
144177         * 
145178         * @param patterns the regular expressions to add to the list of patterns to exclude 
146179         * @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) 
147184         */ 
185+         @ Deprecated (since  = "3.29" , forRemoval  = true )
148186        public  Builder  excludePatterns (String ... patterns ) {
149187            Stream .of (patterns ).forEach (excludePatterns ::add );
150188            return  this ;
@@ -187,8 +225,8 @@ public Builder includeGlobs(Collection<String> globs) {
187225         * @param globs the glob patterns to add 
188226         * @return this {@link Builder} 
189227         */ 
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 );
192230            return  this ;
193231        }
194232
@@ -199,7 +237,12 @@ public Builder includeGlobs(String... patterns) {
199237         * 
200238         * @param pattern the regular expression to add 
201239         * @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) 
202244         */ 
245+         @ Deprecated (since  = "3.29" , forRemoval  = true )
203246        public  Builder  includePattern (String  pattern ) {
204247            includePatterns .add (pattern );
205248            return  this ;
@@ -212,7 +255,12 @@ public Builder includePattern(String pattern) {
212255         * 
213256         * @param patterns the regular expressions to add 
214257         * @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) 
215262         */ 
263+         @ Deprecated (since  = "3.29" , forRemoval  = true )
216264        public  Builder  includePatterns (Collection <String > patterns ) {
217265            includePatterns .addAll (patterns );
218266            return  this ;
@@ -225,7 +273,12 @@ public Builder includePatterns(Collection<String> patterns) {
225273         * 
226274         * @param patterns the regular expressions to add 
227275         * @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) 
228280         */ 
281+         @ Deprecated (since  = "3.29" , forRemoval  = true )
229282        public  Builder  includePatterns (String ... patterns ) {
230283            Stream .of (patterns ).forEach (includePatterns ::add );
231284            return  this ;
0 commit comments