bundlewrap/bundles/java/metadata.py
2023-07-28 02:20:27 +02:00

25 lines
410 B
Python

assert node.os == 'debian'
defaults = {
'java': {
'version': {
10: 11,
11: 17,
12: 17,
}[node.os_version[0]],
},
}
@metadata_reactor.provides(
'apt/packages',
)
def apt(metadata):
return {
'apt': {
'packages': {
f'openjdk-{metadata.get("java/version")}-jre-headless': {},
}
}
}