forked from MyPetORG/MyPet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_dependencies.ps1
22 lines (17 loc) · 1.49 KB
/
install_dependencies.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$1_8_R3_S = "https://cdn.getbukkit.org/spigot/spigot-1.8.8-R0.1-SNAPSHOT-latest.jar"
$1_9_R2_S = "https://cdn.getbukkit.org/spigot/spigot-1.9.4-R0.1-SNAPSHOT-latest.jar"
$1_12_R1_S = "https://cdn.getbukkit.org/spigot/spigot-1.12.jar"
$1_16_R1_S = "https://cdn.getbukkit.org/spigot/spigot-1.16.1.jar"
$1_16_R4_S = "https://cdn.getbukkit.org/spigot/spigot-1.16.5.jar"
New-Item -ItemType Directory -Force -Path .\dl
Invoke-WebRequest -Uri $1_8_R3_S -OutFile ".\dl\1_8_R3_S.jar"
Invoke-WebRequest -Uri $1_9_R2_S -OutFile ".\dl\1_9_R2_S.jar"
Invoke-WebRequest -Uri $1_12_R1_S -OutFile ".\dl\1_12_R1_S.jar"
Invoke-WebRequest -Uri $1_16_R1_S -OutFile ".\dl\1_16_R1_S.jar"
Invoke-WebRequest -Uri $1_16_R4_S -OutFile ".\dl\1_16_R4_S.jar"
& mvn install:install-file -D"file=.\dl\1_8_R3_S.jar" -D"version=1.8.8-R0.1-SNAPSHOT" -D"groupId=org.spigotmc" -D"artifactId=spigot" -D"packaging=jar"
& mvn install:install-file -D"file=.\dl\1_9_R2_S.jar" -D"version=1.9.4-R0.1-SNAPSHOT" -D"groupId=org.spigotmc" -D"artifactId=spigot" -D"packaging=jar"
& mvn install:install-file -D"file=.\dl\1_12_R1_S.jar" -D"version=1.12-R0.1-SNAPSHOT" -D"groupId=org.spigotmc" -D"artifactId=spigot" -D"packaging=jar"
& mvn install:install-file -D"file=.\dl\1_16_R1_S.jar" -D"version=1.16.1-R0.1-SNAPSHOT" -D"groupId=org.spigotmc" -D"artifactId=spigot" -D"packaging=jar"
& mvn install:install-file -D"file=.\dl\1_16_R4_S.jar" -D"version=1.16.5-R0.1-SNAPSHOT" -D"groupId=org.spigotmc" -D"artifactId=spigot" -D"packaging=jar"
#Remove-Item '.\dl' -Recurse