From 7e902cae66adb5418cb0258f42deb968405af45b Mon Sep 17 00:00:00 2001 From: darbyjack Date: Fri, 17 Mar 2023 13:45:31 -0500 Subject: [PATCH 1/2] Fixed variables in the plugin.yml not being created properly --- src/main/resources/plugin.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 44295c9..077b274 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,11 +1,11 @@ -name: "@name@" +name: PlaceholderAPI main: "me.clip.placeholderapi.PlaceholderAPIPlugin" -version: "@version@" +version: ${version} author: HelpChat api-version: "1.13" -description: "@description@" +description: "An awesome placeholder provider!" commands: placeholderapi: From 3d00d48106913c0c172a29bf88d929132b6c229d Mon Sep 17 00:00:00 2001 From: darbyjack Date: Fri, 17 Mar 2023 14:13:49 -0500 Subject: [PATCH 2/2] Tell build to depend on shadowJar and publish for build --- build.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 30380db..ad6c2e3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -65,6 +65,10 @@ tasks { eachFile { expand("version" to project.version) } } + build { + dependsOn(named("shadowJar")) + } + withType { options.encoding = "UTF-8" } @@ -114,7 +118,7 @@ tasks { } } - publish.get().setDependsOn(listOf(clean.get(), test.get(), jar.get())) + publish.get().setDependsOn(listOf(build.get())) } configurations {