Manual configuration (~7-8 minutes)
You can also start with a blank project and manually configure Vital yourself.
While this is not recommended for less technical plugin developers, it's fully supported and not that hard to do.
Please follow these steps carefully:
- Create a blank Gradle project using
gradle initor your IDE. - In your
build.gradleorbuild.gradle, add Vital as a plugin.
build.gradle.kts
plugins {
id("dev.vitalframework.vital-gradle-plugin") version "1.0.0"
}
- Make sure to also add your server's runtime libraries as a
compileOnlydependency (paper api, bungee api, etc.)
build.gradle.kts
repositories {
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")
}
- Build the project using Gradle (
./gradlew) and move the built plugin JAR (build/libs/project.jar) into your server'splugins/directory.
Troubleshooting
If you are experiencing any problems during project initialization, like ./gradlew build, etc.
Please make sure you are running the correct JDK (24) and retry.
If you are still running into problems, a ./gradlew clean or cleaning your Gradle cache files under ~/.gradle/caches/ might help.
If not, please create an issue on GitHub.