Create spigot.md
This commit is contained in:
27
guide/docs/setup/spigot.md
Normal file
27
guide/docs/setup/spigot.md
Normal file
@@ -0,0 +1,27 @@
|
||||
In this guide we will assume that you are using or want to use Gradle.
|
||||
|
||||
## Install Java
|
||||
|
||||
You will need to have the JDK (Java Development Kit) installed.
|
||||
|
||||
If you do not already have a JDK installed, you have several options:
|
||||
|
||||
- [Windows](https://adoptopenjdk.net/)
|
||||
- Arch `pacman -S jdk-openjdk` (refer to the [archwiki](https://wiki.archlinux.org/index.php/Java#OpenJDK) for other versions)
|
||||
- Debian `apt install default-jdk` (refer to the [Debian Wiki](https://wiki.debian.org/Java/) for other versions)
|
||||
|
||||
Please make sure that you know which version of Java you have just installed. If you just have one installation of Java, run `java -version` to get the current Java version on your system.
|
||||
|
||||
## Create a project
|
||||
|
||||
In IntelliJ IDEA, click on `File > New > Project` and choose `Gradle` on the sidebar in the popup window.
|
||||
|
||||
Now choose the JDK which you have just installed.
|
||||
|
||||
If you want to write your gradle build script in Kotlin, make sure to tick the `Kotlin DSL build script` checkbox. _(recommended)_
|
||||
|
||||
Now select `Java` and `Kotlin/JVM` as your frameworks.
|
||||
|
||||
After that, you can create your project.
|
||||
|
||||
You may now continue with the [Setup using Gradle](gradle.md) guide.
|
Reference in New Issue
Block a user