@@ -42,6 +42,7 @@ public class Alias extends CatalogItem {
42
42
public final Boolean nativeImage ;
43
43
@ SerializedName (value = "native-options" )
44
44
public final List <String > nativeOptions ;
45
+ public final Boolean integrations ;
45
46
public final String jfr ;
46
47
public final Map <String , String > debug ;
47
48
public final Boolean cds ;
@@ -87,8 +88,7 @@ public int hashCode() {
87
88
88
89
public Alias () {
89
90
this (null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
90
- null ,
91
- null , null , null , null , null , null , null );
91
+ null , null , null , null , null , null , null , null , null );
92
92
}
93
93
94
94
public Alias (String scriptRef ,
@@ -107,6 +107,7 @@ public Alias(String scriptRef,
107
107
List <String > compileOptions ,
108
108
Boolean nativeImage ,
109
109
List <String > nativeOptions ,
110
+ Boolean integrations ,
110
111
String jfr ,
111
112
Map <String , String > debug ,
112
113
Boolean cds ,
@@ -134,6 +135,7 @@ public Alias(String scriptRef,
134
135
this .compileOptions = compileOptions ;
135
136
this .nativeImage = nativeImage ;
136
137
this .nativeOptions = nativeOptions ;
138
+ this .integrations = integrations ;
137
139
this .jfr = jfr ;
138
140
this .debug = debug ;
139
141
this .cds = cds ;
@@ -226,6 +228,7 @@ private static Alias merge(Alias a1, String name, Function<String, Alias> findUn
226
228
List <String > nopts = a1 .nativeOptions != null && !a1 .nativeOptions .isEmpty () ? a1 .nativeOptions
227
229
: a2 .nativeOptions ;
228
230
Boolean nimg = a1 .nativeImage != null ? a1 .nativeImage : a2 .nativeImage ;
231
+ Boolean ints = a1 .integrations != null ? a1 .integrations : a2 .integrations ;
229
232
String jfr = a1 .jfr != null ? a1 .jfr : a2 .jfr ;
230
233
Map <String , String > debug = a1 .debug != null ? a1 .debug : a2 .debug ;
231
234
Boolean cds = a1 .cds != null ? a1 .cds : a2 .cds ;
@@ -238,7 +241,7 @@ private static Alias merge(Alias a1, String name, Function<String, Alias> findUn
238
241
List <JavaAgent > jags = a1 .javaAgents != null && !a1 .javaAgents .isEmpty () ? a1 .javaAgents : a2 .javaAgents ;
239
242
Catalog catalog = a2 .catalog != null ? a2 .catalog : a1 .catalog ;
240
243
return new Alias (a2 .scriptRef , desc , args , jopts , srcs , ress , deps , repos , cpaths , props , javaVersion ,
241
- mainClass , moduleName , copts , nimg , nopts , jfr , debug , cds , inter , ep , ea , esa , mopts , jags ,
244
+ mainClass , moduleName , copts , nimg , nopts , ints , jfr , debug , cds , inter , ep , ea , esa , mopts , jags ,
242
245
catalog );
243
246
} else {
244
247
return a1 ;
@@ -283,16 +286,14 @@ private static Alias fromCatalog(String catalogName, String aliasName) {
283
286
public Alias withCatalog (Catalog catalog ) {
284
287
return new Alias (scriptRef , description , arguments , runtimeOptions , sources , resources , dependencies ,
285
288
repositories , classpaths , properties , javaVersion , mainClass , moduleName , compileOptions , nativeImage ,
286
- nativeOptions , jfr , debug , cds , interactive , enablePreview , enableAssertions , enableSystemAssertions ,
287
- manifestOptions ,
288
- javaAgents , catalog );
289
+ nativeOptions , integrations , jfr , debug , cds , interactive , enablePreview , enableAssertions ,
290
+ enableSystemAssertions , manifestOptions , javaAgents , catalog );
289
291
}
290
292
291
293
public Alias withScriptRef (String scriptRef ) {
292
294
return new Alias (scriptRef , description , arguments , runtimeOptions , sources , resources , dependencies ,
293
295
repositories , classpaths , properties , javaVersion , mainClass , moduleName , compileOptions , nativeImage ,
294
- nativeOptions , jfr , debug , cds , interactive , enablePreview , enableAssertions , enableSystemAssertions ,
295
- manifestOptions ,
296
- javaAgents , catalog );
296
+ nativeOptions , integrations , jfr , debug , cds , interactive , enablePreview , enableAssertions ,
297
+ enableSystemAssertions , manifestOptions , javaAgents , catalog );
297
298
}
298
299
}
0 commit comments