-
Notifications
You must be signed in to change notification settings - Fork 2
Compilation
Brov3r edited this page Jul 15, 2024
·
1 revision
After you have written your plugin, you need to build it using shadowJar in build.gradle:
/**
* Creating a Jar file
*/
shadowJar {
archiveFileName.set("${rootProject.name}-${version}.jar")
destinationDirectory.set(file(buildPath))
manifest {
attributes(
'Implementation-Title': rootProject.name,
'Implementation-Version': version,
)
}
}Just run this task and the assembled Jar archive will appear in the build folder. Then you can use it (move it to the 'plugins` folder in the game/server directory)