From c7a7d762e0142f070c8b79b60f5ca8ffd8c68824 Mon Sep 17 00:00:00 2001 From: Jakob K Date: Fri, 23 Apr 2021 19:05:45 +0000 Subject: [PATCH] Create spigot.md --- guide/docs/setup/spigot.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 guide/docs/setup/spigot.md diff --git a/guide/docs/setup/spigot.md b/guide/docs/setup/spigot.md new file mode 100644 index 00000000..499da7dd --- /dev/null +++ b/guide/docs/setup/spigot.md @@ -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.