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",
"cSpell.words": [
"Gamerules",
"Minecraft",
"Mojang",
"cliffbreak",
"mkdir",
"teamcolors",
"unban",
"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
```
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
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).

View file

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