@@ -763,6 +763,14 @@ def _find_escaping_links(root_dir):
763
763
main_component = _get_main_component (installable_components )
764
764
mx .logv ("Adding gu metadata for{}installable '{}'" .format (' disabled ' if _disable_installable (main_component ) else ' ' , main_component .installable_id ))
765
765
_add (layout , components_dir + 'org.graalvm.' + main_component .installable_id + '.component' , "string:" + manifest_str )
766
+ # Register Core
767
+ manifest_str = _format_properties ({
768
+ "Bundle-Name" : "GraalVM Core" ,
769
+ "Bundle-Symbolic-Name" : "org.graalvm" ,
770
+ "Bundle-Version" : _suite .release_version (),
771
+ "x-GraalVM-Stability-Level" : _get_core_stability (),
772
+ })
773
+ _add (layout , components_dir + 'org.graalvm.component' , "string:" + manifest_str )
766
774
767
775
for _base , _suites in component_suites .items ():
768
776
_metadata = self ._get_metadata (_suites )
@@ -2205,6 +2213,22 @@ def _format_properties(data):
2205
2213
) + "\n "
2206
2214
2207
2215
2216
+ def _get_component_stability (component ):
2217
+ if _src_jdk_version not in (11 , 17 ):
2218
+ return "experimental"
2219
+ if mx .is_darwin () and mx .get_arch () == 'aarch64' :
2220
+ return "experimental"
2221
+ return component .stability
2222
+
2223
+
2224
+ def _get_core_stability ():
2225
+ if _src_jdk_version not in (11 , 17 ):
2226
+ return "experimental"
2227
+ if mx .is_darwin () and mx .get_arch () == 'aarch64' :
2228
+ return "experimental"
2229
+ return "supported"
2230
+
2231
+
2208
2232
def _gen_gu_manifest (components , formatter , bundled = False ):
2209
2233
main_component = _get_main_component (components )
2210
2234
version = _suite .release_version ()
@@ -2221,9 +2245,7 @@ def _gen_gu_manifest(components, formatter, bundled=False):
2221
2245
and (not isinstance (main_component , mx_sdk .GraalVmTool ) or main_component .include_by_default ))
2222
2246
2223
2247
if main_component .stability is not None :
2224
- stability = main_component .stability
2225
- if _src_jdk_version > 11 :
2226
- stability = "experimental"
2248
+ stability = _get_component_stability (main_component )
2227
2249
manifest ["x-GraalVM-Stability-Level" ] = stability
2228
2250
if stability in ("experimental" , "earlyadopter" , "supported" ):
2229
2251
# set x-GraalVM-Stability for backward compatibility when possible
@@ -3157,7 +3179,7 @@ def graalvm_show(args, forced_graalvm_dist=None):
3157
3179
print ("Config name: {}" .format (graalvm_dist .vm_config_name ))
3158
3180
print ("Components:" )
3159
3181
for component in graalvm_dist .components :
3160
- print (" - {} ('{}', /{})" .format (component .name , component .short_name , component .dir_name ))
3182
+ print (" - {} ('{}', /{}, {} )" .format (component .name , component .short_name , component .dir_name , _get_component_stability ( component ) ))
3161
3183
3162
3184
if forced_graalvm_dist is None :
3163
3185
# Custom GraalVM distributions with a forced component list do not yet support launchers and libraries.
0 commit comments