Skip to content

Commit 94f39c0

Browse files
committed
main class should be set to be inside main package
1 parent 390a6af commit 94f39c0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gradle/templates/folia/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tasks {
5959
props["name"] = rootProject.name
6060
props["version"] = "${rootProject.version}"
6161
props["api_version"] = mcApiVersionRegex.find(libs.versions.paper.get())?.value
62+
props["main_class"] = "${rootProject.group}.${rootProject.name.lowercase()}.${props["main_class"]}"
6263

6364
filesMatching("plugin.yml") {
6465
expand(props.map { "plugin_${it.key}" to it.value }.toMap())

gradle/templates/paper/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tasks {
5959
props["name"] = rootProject.name
6060
props["version"] = "${rootProject.version}"
6161
props["api_version"] = mcApiVersionRegex.find(libs.versions.paper.get())?.value
62+
props["main_class"] = "${rootProject.group}.${rootProject.name.lowercase()}.${props["main_class"]}"
6263

6364
filesMatching("plugin.yml") {
6465
expand(props.map { "plugin_${it.key}" to it.value }.toMap())

0 commit comments

Comments
 (0)