Merge pull request #935 from PlaceholderAPI/fix/kotlin-build-system

This commit is contained in:
Gabriel Dumitru 2023-03-17 22:16:10 +02:00 committed by GitHub
commit 0ae0ddc9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -65,6 +65,10 @@ tasks {
eachFile { expand("version" to project.version) } eachFile { expand("version" to project.version) }
} }
build {
dependsOn(named("shadowJar"))
}
withType<JavaCompile> { withType<JavaCompile> {
options.encoding = "UTF-8" 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 { configurations {

View File

@ -1,11 +1,11 @@
name: "@name@" name: PlaceholderAPI
main: "me.clip.placeholderapi.PlaceholderAPIPlugin" main: "me.clip.placeholderapi.PlaceholderAPIPlugin"
version: "@version@" version: ${version}
author: HelpChat author: HelpChat
api-version: "1.13" api-version: "1.13"
description: "@description@" description: "An awesome placeholder provider!"
commands: commands:
placeholderapi: placeholderapi: