aboutsummaryrefslogtreecommitdiff
path: root/installer/install-metals.cmd
blob: 294ed2d6fd0af5cc1f9ab462daca64e369f07b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\metals
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat

set version="0.7.6"
java %JAVA_OPTS% -jar coursier bootstrap --ttl Inf "org.scalameta:metals_2.12:%version%" -r "bintray:scalacenter/releases" -r "sonatype:public" -r "sonatype:snapshots" -o metals