Skip to content

Commit

Permalink
Revert "feat: generate classes in the "generated" source set"
Browse files Browse the repository at this point in the history
This reverts commit 616ba7c.
  • Loading branch information
Apehum committed May 18, 2024
1 parent 616ba7c commit 712ded8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 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,
"generated/sources/plasmovoice/java/${packageName.replace(".", "/")}"
"classes/java/main/${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,
"generated/sources/plasmovoice/java/${packageName.replace(".", "/")}"
"classes/java/main/${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,
"generated/sources/plasmovoice/java/${packageName.replace(".", "/")}"
"classes/java/main/${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,
"generated/sources/plasmovoice/java/${packageName.replace(".", "/")}"
"classes/java/main/${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,
"generated/sources/plasmovoice/java/${packageName.replace(".", "/")}"
"classes/java/main/${packageName.replace(".", "/")}"
).also { it.mkdirs() }

File(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package su.plo.voice.plugin.entrypoint

import com.github.javaparser.ast.CompilationUnit
import com.google.gson.GsonBuilder
import com.google.gson.JsonArray
import com.google.gson.JsonObject
Expand Down Expand Up @@ -96,7 +97,7 @@ object VelocityAddonEntryPoint : AddonEntryPoint() {

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

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

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

tasks {
Expand Down

0 comments on commit 712ded8

Please sign in to comment.