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