tis-adoptium-openjdk11-jdk

11.0.22.7-4
Adoptium OpenJDK 11 JDK HotSpot
31396 downloads
Download
See build result See VirusTotal scan
tis-adoptium-openjdk11-jdk icon
  • package : tis-adoptium-openjdk11-jdk
  • name : Adoptium OpenJDK 11 JDK
  • version : 11.0.22.7-4
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Clément BAZIRET
  • editor : AdoptOpenJDK
  • licence : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : java,javaw
  • architecture : all
  • signature_date : 2024-01-23 17:05
  • size : 330.97 Mo
  • homepage : https://adoptium.net/
  • conflicts :
package           : tis-adoptium-openjdk11-jdk
version           : 11.0.22.7-4
architecture      : all
section           : base
priority          : optional
name              : Adoptium OpenJDK 11 JDK
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Clément BAZIRET
description       : Adoptium OpenJDK 11 JDK HotSpot
depends           : 
conflicts         : tis-oracle-java11-jre-nonfree,tis-oracle-java11-jre-free
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/adoptium/temurin11-binaries
installed_size    : 
impacted_process  : java,javaw
description_fr    : Adoptium OpenJDK 11 JDK HotSpot
description_pl    : Adoptium OpenJDK 11 JDK HotSpot
description_de    : Adoptium OpenJDK 11 JDK HotSpot
description_es    : Adoptium OpenJDK 11 JDK HotSpot
description_pt    : Adoptium OpenJDK 11 JDK HotSpot
description_it    : Adoptium OpenJDK 11 JDK HotSpot
description_nl    : Adoptium OpenJDK 11 JDK HotSpot
description_ru    : Adoptium OpenJDK 11 JDK HotSpot
audit_schedule    : 
editor            : AdoptOpenJDK
keywords          : adopt,open,jdk,adoptopenjdk,java,jre
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
homepage          : https://adoptium.net/
package_uuid      : f9237d6c-2fa5-422c-bd9c-d74149672647
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://adoptium.net//release_notes.html
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : VmZe47GDwed7ktuDncgNQ2I13JoQ7SYVCXb6qKG4/jBm1FvtlcdEasRDA9sBFT3njwYGRBraBpM8/G7pCpJLNABE5aUqBOuaj6bPptca8l9B05B7LiJcyNIarinE0Xl+ARxpmAZHYios7QU8x3AxpVeCcM222huo4n6WNw8Qd264KwUFnLFC224JeFy9gYuRCrtLbzOZRnsHaFGsu8v/rT4RkoS9MnkZwejGNswlOExZRsjFkIi3DiJT1Cww3vkWWndukmOdurVzK62hlXax2PowiKjIbAWlX+WCf7PLnDIU1PEM4Z+GTBfLtTadZdRDp2aggzKlNlzh76zqQhYZqw==
signature_date    : 2024-01-23T17:05:41.879577
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

bin_contains = "OpenJDK11"
bin_type = "jdk"
msi_properties = "INSTALLLEVEL=1 ADDLOCAL=FeatureJavaHome,FeatureOracleJavaSoft"


def install():
    # Declaring local variables
    package_version = control.get_software_version()

    # removing older versions
    for to_uninstall in installed_softwares(name=r"Eclipse Temurin JDK"):
        if Version(to_uninstall["version"]) < Version(package_version) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])
            if isdir(to_uninstall["install_location"]):
                remove_tree(to_uninstall["install_location"])

    # Installing the software
    if "x64" in ensure_list(control.architecture) or "all" in ensure_list(control.architecture) and iswin64():
        bin_name_x64 = glob.glob("*%s*x64*.msi" % bin_contains)[0]
        install_msi_if_needed(
            bin_name_x64,
            properties=msi_properties,
        )

    if "x86" in ensure_list(control.architecture) or "all" in ensure_list(control.architecture):
        bin_name_x86 = glob.glob("*%s*x86*.msi" % bin_contains)[0]
        install_msi_if_needed(
            bin_name_x86,
            properties=msi_properties,
        )
# -*- coding: utf-8 -*-
from setuphelpers import *
import json

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

bin_contains = "OpenJDK11"
openjdk_version = "11"
bin_type = "jdk"


def update_package():
    # Declaring local variables
    arch = control.architecture
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    # api : https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
    url_api_64 = (
        "https://api.adoptium.net/v3/assets/feature_releases/%s/ga?architecture=x64&heap_size=normal&image_type=%s&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
        % (openjdk_version, bin_type)
    )
    url_api_32 = (
        "https://api.adoptium.net/v3/assets/feature_releases/%s/ga?architecture=x32&heap_size=normal&image_type=%s&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
        % (openjdk_version, bin_type)
    )

    # Getting latest version information from official sources
    print("API used is: %s" % url_api_64)
    json_load = json.loads(wgets(url_api_64, proxies=proxies))

    # getting  latest 64 bit version
    found = False

    for releases in json_load:
        if found:
            break
        for binary in releases["binaries"]:
            if (
                bin_contains.lower() in binary["installer"]["link"].lower()
                and binary["image_type"].lower() == bin_type.lower()
                and binary["architecture"].lower() == "x64"
                and binary["installer"]["link"].endswith(".msi")
            ):
                version_64 = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", ".")
                url_dl_64 = binary["installer"]["link"]
                latest_bin_64 = url_dl_64.rsplit("/", 1)[1]
                found = True
                break
    # getting  latest 32 bit version
    found = False
    print("API used is: %s" % url_api_32)
    json_load = json.loads(wgets(url_api_32, proxies=proxies))

    for releases in json_load:
        if found:
            break
        for binary in releases["binaries"]:
            if (
                bin_contains.lower() in binary["installer"]["link"].lower()
                and binary["image_type"].lower() == bin_type.lower()
                and binary["architecture"].lower() == "x32"
                and binary["installer"]["link"].endswith(".msi")
            ):
                version_86 = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", ".")
                url_dl_86 = binary["installer"]["link"]
                latest_bin_86 = url_dl_86.rsplit("/", 1)[1]
                found = True
                break
    if version_64:
        version = version_64
    elif version_86:
        version = version_86
    else:
        print("ERROR: Couldn't fin the software version")

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL  for x86 is: %s" % url_dl_86)
    print("Download URL  for x64 is: %s" % url_dl_64)
    # Downloading latest 64 bit binaries
    if not isfile(latest_bin_64):
        for bin_64 in glob.glob("*%s*64*.msi" % bin_contains):
            remove_file(bin_64)
        if arch == "all" or arch == "x64":
            print("Downloading: %s" % latest_bin_64)
            wget(url_dl_64, latest_bin_64, proxies=proxies)

    # Downloading latest 32 bit binaries
    if not isfile(latest_bin_86):
        for bin_86 in glob.glob("*%s*86*.msi" % bin_contains):
            remove_file(bin_86)
        if arch == "all" or arch == "x86":
            print("Downloading: %s" % latest_bin_86)
            wget(url_dl_86, latest_bin_86, proxies=proxies)

    if arch == "x86":
        latest_bin = latest_bin_86
    else:
        latest_bin = latest_bin_64
    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)

    if Version(version_from_file) != Version(version_64) and version_from_file != "":
        print("Changing version to the version number of the binary")
        for f in glob.glob(bin_contains + "*.msi"):
            new_name = f.split("windows_hotspot_")[0] + version_from_file + ".msi"
            os.rename(f, new_name)
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    control.save_control_to_wapt()

    # Validating update-package-sources
    return result
290499da92ee3bac42d35d5b69b8a3a8c6932d7f65d9db0e8c045508e306fdff : setup.py
a628fdaf29923f4cc2dfd3445369a4c1ce9c205bdf219a8ac33f809d489ffb6f : OpenJDK11U-jdk_x64_windows_hotspot_11.0.22_7.msi
 : __pycache__
f16882ba1c906ecc681a532f04c9359edbb2ef21499251f25ea668032a2fc5cf : update_package.py
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
22a8a696d1d9a8945dc7e7cdf11e5e88392f22d1c141c9bf24f6883e1c266722 : luti.json
57111df6bfb24d0f9977a3940aae41940cc42c6a6f43aa98d03c73f568bed30a : OpenJDK11U-jdk_x86-32_windows_hotspot_11.0.21_9.msi
8f4392b897d76ae7272bfecff7e324f064a4f4a921eb048f8d536636f18527ce : WAPT/control