Add Adoptium OpenJDK

This commit is contained in:
Steffen Lange 2021-08-02 15:30:03 +02:00
parent e0faa2e81e
commit f890ff9d47
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<?php
class AdoptiumOpenJDK8 extends PatchBase {
function __construct() {
parent::__construct('Adoptium', 'OpenJDK', 'https://adoptium.net/releases.html?variant=openjdk8&jvmVariant=hotspot');
$this->patch->setBranch('8');
}
function check() : bool {
if ($this->fetch_json('https://api.adoptium.net/v3/info/release_versions?heap_size=normal&image_type=jdk&page=0&page_size=10&project=jdk&release_type=ga&sort_method=DEFAULT&sort_order=DESC&vendor=adoptium&version=%5B8.0%2C8.1%29'))
return $this->parse_json('openjdk_version');
return false;
}
}
?>