Add Adoptium OpenJDK
This commit is contained in:
parent
e0faa2e81e
commit
f890ff9d47
3 changed files with 45 additions and 0 deletions
15
modules/AdoptiumOpenJDK11.php
Normal file
15
modules/AdoptiumOpenJDK11.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class AdoptiumOpenJDK11 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Adoptium', 'OpenJDK', 'https://adoptium.net/releases.html?variant=openjdk11&jvmVariant=hotspot');
|
||||
$this->patch->setBranch('11');
|
||||
}
|
||||
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=%5B11.0%2C11.1%29'))
|
||||
return $this->parse_json('openjdk_version');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue