Please sign in to comment.
Remove homebrew and bash scripts. (#905)
For v1.0, I want to simplify the publish steps. Currently, publishing takes a lot of time because it involves several flaky steps including - assembling fatjar (15 mb) - upload fatjar to github - download fatjar from github to get sha (I can't run sha against original local copy because it changes after uploading to github) - automatically update homebrew script with dowload url + sha Almost every time I publish, something in this process breaks and it takes me 5-10 minutes to fix. After almost 70 scalafmt releases I want to find a more sustainable release process. From now on, I want to publish only to Maven/Bintray and use coursier as the main way to install the cli. So, instead of `homebrew upgrade scalafmt`, people can run the following command on any platform (Windows, Linux or Mac) ``` sudo coursier bootstrap --standalone com.geirsson:scalafmt-cli_2.12:0.7.0-RC1 -o /usr/local/bin/scalafmt -f --main org.scalafmt.cli.Cli ``` This command builds a fatjar from maven published artifacts. A nice side-effect is that coursier will use the existing cache to minimize downloads. This means that if you upgrade from scalafmt 1.0 to 1.1 and the underlying scala.meta dependency hasn't changed, you only need to download the new scalafmt artifacts, saving several megabytes in downloads. Another nice benefit to coursier is that users can more easily configure the JVM options. I admit that that coursier command is harder to remember than `homebrew upgrade scalafmt`. I would like to open a discussion in coursier/coursier about adding a simpler syntax or support for a `coursier.conf` configuration to alias maven coordinates, etc. I believe it will be possible to turn that long command into something like `coursier install scalafmt` and `coursier upgrade scalafmt 0.7.0`.
- Loading branch information...
Showing with 0 additions and 203 deletions.
Submodule homebrew deleted from 5ea41b