1- import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2-
31plugins {
42 id(" java-library" )
5- id(" com.gradleup.shadow " ) version " 9.2.2 "
3+ id(" org.allaymc.gradle.plugin " ) version " 0.1.1 "
64}
75
8- // TODO: Update the group to yours
9- group = " org.allaymc"
6+ // TODO: Update the group to yours (should be same to the package of the plugin main class)
7+ group = " org.allaymc.javaplugintemplate "
108// TODO: Update the description to yours
119description = " Java plugin template for allay server"
1210version = " 0.1.0"
@@ -17,18 +15,24 @@ java {
1715 }
1816}
1917
20- repositories {
21- mavenCentral()
18+ // See also https://github.com/AllayMC/AllayGradle
19+ allay {
20+ // TODO: Update the api version to the latest
21+ // You can find the latest version here: https://central.sonatype.com/artifact/org.allaymc.allay/api
22+ api = " 0.16.0"
23+
24+ plugin {
25+ // TODO: Update the entrance when you change your plugin main class
26+ // Same to `org.allaymc.javaplugintemplate.JavaPluginTemplate`
27+ entrance = " .JavaPluginTemplate"
28+ // TODO: Use your handsome name here
29+ authors + = " YourNameHere"
30+ // TODO: Update the website to yours
31+ website = " https://github.com/AllayMC/JavaPluginTemplate"
32+ }
2233}
2334
2435dependencies {
25- // TODO: Update the version of api to the latest
26- compileOnly(group = " org.allaymc.allay" , name = " api" , version = " 0.12.0" )
2736 compileOnly(group = " org.projectlombok" , name = " lombok" , version = " 1.18.34" )
28-
2937 annotationProcessor(group = " org.projectlombok" , name = " lombok" , version = " 1.18.34" )
3038}
31-
32- tasks.shadowJar {
33- archiveFileName = " ${project.name} -${version} -shaded.jar"
34- }
0 commit comments