{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:recommended"
  ],
  "semanticCommits": "disabled",
  "customManagers": [
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/scripts/bundler.sh/"
      ],
      "matchStrings": [
        "JRE_ZULU=[\"'](?<currentValue>.+?)[\"']"
      ],
      "depNameTemplate": "zulu",
      "datasourceTemplate": "custom.zulu",
      "versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+).*$"
    }
  ],
  "customDatasources": {
    "zulu": {
      "defaultRegistryUrlTemplate": "https://api.azul.com/metadata/v1/zulu/packages?availability_types=ca&release_status=both&java_package_type=jre&crac_supported=false&javafx_bundled=false&support_term=lts&arch=x86&os=linux&archive_type=zip&page_size=1000&include_fields=java_package_features,release_status,support_term,os,arch,hw_bitness,abi,java_package_type,javafx_bundled,sha256_hash,cpu_gen,size,archive_type,certifications,lib_c_type,crac_supported&page=1&azul_com=true",
      "transformTemplates": [
        "{\"releases\": $$.$join([$join($map(distro_version[[0..2]], $string), \".\"), \"_\", $join($map(java_version, $string), \".\")])}"
      ]
    }
  }
}
