feat: add NMS to maven and README

This commit is contained in:
Simon Giesel 2020-05-04 18:32:09 +02:00
parent bdb213e3e1
commit 46c34f137f
3 changed files with 33 additions and 8 deletions

View file

@ -5,8 +5,10 @@
"java.configuration.updateBuildConfiguration": "automatic", "java.configuration.updateBuildConfiguration": "automatic",
"cSpell.words": [ "cSpell.words": [
"Gamerules", "Gamerules",
"Minecraft",
"Mojang", "Mojang",
"cliffbreak", "cliffbreak",
"mkdir",
"teamcolors", "teamcolors",
"unban", "unban",
"varo" "varo"

View file

@ -18,6 +18,27 @@ First clone this repository to your local machine by using
git clone https://git.cliffbreak.de/Cliffbreak/Varo.git git clone https://git.cliffbreak.de/Cliffbreak/Varo.git
``` ```
Create a new directory named `tmp-build` outside of the project directory (or it will break the VSCode Language Server)
```
mkdir ~/tmp-build && cd ~/tmp-build
```
Download the latest version of Spigot BuildTools
```
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
```
Run BuildTools
```
java -jar BuildTools.jar --rev latest
```
After that you can safely remove the `tmp-build` directory
```
rm -rf ~/tmp-build
```
## Configure Visual Studio Code ## Configure Visual Studio Code
If you haven't a instance of Visual Studio Code up and running download the latest version [here](https://code.visualstudio.com/download). If you haven't a instance of Visual Studio Code up and running download the latest version [here](https://code.visualstudio.com/download).
Install the recommended extensions by opening the Extensions-Tab (Ctrl+Shift+X). Install the recommended extensions by opening the Extensions-Tab (Ctrl+Shift+X).

View file

@ -18,28 +18,30 @@
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<repositories> <repositories>
<!-- <repository> <repository>
<id>spigot-repo</id> <id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> --> </repository>
<repository> <repository>
<id>papermc</id> <id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url> <url>https://papermc.io/repo/repository/maven-public/</url>
</repository> </repository>
</repositories> </repositories>
<dependencies> <dependencies>
<!-- <dependency> <!--Paperclip API -->
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency> -->
<dependency> <dependency>
<groupId>com.destroystokyo.paper</groupId> <groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId> <artifactId>paper-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version> <version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--Spigot API and NMS -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>