From 2bcdc63767adf3a0d95c0ba2e1639a39b10ef800 Mon Sep 17 00:00:00 2001 From: Oliver Weiler Date: Tue, 18 Jun 2024 17:17:06 +0200 Subject: [PATCH] chore: Remove Homebrew packager (#1298) --- .github/workflows/release.yml | 1 - gradle/release.gradle | 3 -- .../sdkman-cli/brew/README.md.tpl | 29 ---------------- .../sdkman-cli/brew/formula.rb.tpl | 33 ------------------- 4 files changed, 66 deletions(-) delete mode 100644 src/jreleaser/distributions/sdkman-cli/brew/README.md.tpl delete mode 100644 src/jreleaser/distributions/sdkman-cli/brew/formula.rb.tpl diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eda0a4407..33b7ee1f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,6 @@ jobs: JRELEASER_TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} JRELEASER_TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} JRELEASER_MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN}} - JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }} services: mongodb: image: mongo:3.2 diff --git a/gradle/release.gradle b/gradle/release.gradle index c13e69413..8ba2202b9 100644 --- a/gradle/release.gradle +++ b/gradle/release.gradle @@ -36,9 +36,6 @@ jreleaser { path = "build/distributions/{{distributionName}}-${sdkmanVersion}.zip" extraProperties.put("universal", "true") } - brew { - active = 'ALWAYS' - } } } diff --git a/src/jreleaser/distributions/sdkman-cli/brew/README.md.tpl b/src/jreleaser/distributions/sdkman-cli/brew/README.md.tpl deleted file mode 100644 index ed9be6aae..000000000 --- a/src/jreleaser/distributions/sdkman-cli/brew/README.md.tpl +++ /dev/null @@ -1,29 +0,0 @@ -# SDKMAN! Homebrew Tap - -A Homebrew tap containing the Formula for the SDKMAN! CLI. - -## Installation - -```sh -$ brew tap sdkman/tap -$ brew install sdkman-cli -``` - -After successful installation add the following lines to the end of your `.bash_profile` - -```sh -export SDKMAN_DIR=$(brew --prefix sdkman-cli)/libexec -[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh" -``` - -Open a new terminal and type - -```sh -sdk version -``` - -The output should look similar to this - -```sh -SDKMAN {{projectVersion}} -``` diff --git a/src/jreleaser/distributions/sdkman-cli/brew/formula.rb.tpl b/src/jreleaser/distributions/sdkman-cli/brew/formula.rb.tpl deleted file mode 100644 index 534063f10..000000000 --- a/src/jreleaser/distributions/sdkman-cli/brew/formula.rb.tpl +++ /dev/null @@ -1,33 +0,0 @@ -class {{brewFormulaName}} < Formula - desc "{{projectDescription}}" - homepage "{{projectWebsite}}" - url "{{distributionUrl}}" - version "{{projectVersion}}" - sha256 "{{distributionChecksumSha256}}" - license "{{projectLicense}}" - - def install - libexec.install Dir["*"] - - %w[tmp ext etc var candidates].each { |dir| mkdir libexec/dir } - - system "curl", "-s", "https://api.sdkman.io/2/candidates/all", "-o", libexec/"var/candidates" - - (libexec/"etc/config").write <<~EOS - sdkman_auto_answer=false - sdkman_auto_complete=true - sdkman_auto_env=false - sdkman_beta_channel=false - sdkman_colour_enable=true - sdkman_curl_connect_timeout=7 - sdkman_curl_max_time=10 - sdkman_debug_mode=false - sdkman_insecure_ssl=false - sdkman_selfupdate_feature=false - EOS - end - - test do - assert_match version, shell_output("export SDKMAN_DIR=#{libexec} && source #{libexec}/bin/sdkman-init.sh && sdk version") - end -end