Skip to content

Commit

Permalink
feat: generate classes in "generated/sources/plasmovoice/classes"
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed May 18, 2024
1 parent 712ded8 commit 8d496e2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ object BukkitAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ object BungeeCordAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object FabricAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ object ForgeAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ object MinestomAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object VelocityAddonEntryPoint : AddonEntryPoint() {

val packageDir = File(
project.buildDir,
"classes/java/main/${packageName.replace(".", "/")}"
"generated/sources/plasmovoice/classes/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ val generateLoadersEntrypoints = tasks.create("generateLoadersEntrypoints", Gene
val sourceSets = extensions.getByType(SourceSetContainer::class.java)
val mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME)

mainSourceSet.resources.srcDir("${buildDir}/generated/sources/plasmovoice/classes")
mainSourceSet.resources.srcDir("${buildDir}/generated/sources/plasmovoice/resources")

tasks {
Expand Down

0 comments on commit 8d496e2

Please sign in to comment.