{
    "version": "4.2.0",
    "description": "Apache Kafka. A distributed streaming platform.",
    "homepage": "https://kafka.apache.org/",
    "license": "Apache-2.0",
    "suggest": {
        "JDK": "java/openjdk"
    },
    "url": "https://downloads.apache.org/kafka/4.2.0/kafka_2.13-4.2.0.tgz",
    "hash": "sha512:16ce46e590ba915f01b720ea514445e49c88bf129cf4ceab88878b122d54ef24f0dedb88d0eb178957f58057a6c6a9adbea8b8059307585daea13129b85ba1d8",
    "extract_dir": "kafka_2.13-4.2.0",
    "post_install": [
        "Get-ChildItem -Path \"$dir\\bin\\windows\" -File -Filter '*.bat' | ForEach-Object {",
        "    Write-Output \"Creating shim for '$($_.BaseName)'.\"",
        "    shim $_.FullName $global $_.BaseName",
        "}"
    ],
    "persist": [
        "config",
        "logs"
    ],
    "pre_uninstall": [
        "Get-ChildItem -Path \"$dir\\bin\\windows\" -File -Filter '*.bat' | ForEach-Object {",
        "    rm_shim $_.BaseName $(shimdir $global) $app",
        "}"
    ],
    "checkver": {
        "url": "https://kafka.apache.org/community/downloads/",
        "regex": "kafka_(?<scala>[\\d.]+)-(?<version>[\\d.]+)\\.tgz"
    },
    "autoupdate": {
        "url": "https://downloads.apache.org/kafka/$version/kafka_$matchScala-$version.tgz",
        "hash": {
            "url": "$url.sha512",
            "regex": "$basename:[\\x20\\t]+([a-fA-F0-9\\s]+)\\n+"
        },
        "extract_dir": "kafka_$matchScala-$version"
    }
}
