PatchBot/modules/AdoptOpenJDK11.php

15 lines
496 B
PHP

<?php
class AdoptOpenJDK11 extends PatchBase {
function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk11&amp;jvmVariant=hotspot');
$this->patch->setBranch('JRE 11');
}
function check() : bool {
if ($this->fetch_json('https://api.adoptopenjdk.net/v2/info/releases/openjdk11?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64'))
return $this->parse_json('openjdk_version');
return false;
}
}
?>