Skip to content

Commit

Permalink
Reverted some of the build.gradle changes because it doesnt build
Browse files Browse the repository at this point in the history
i dont wanna figure out why it doesnt build quite yet
  • Loading branch information
Sephta committed Jun 21, 2024
1 parent 296cc62 commit a4c3d52
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,29 @@ repositories {
}

loom {
splitEnvironmentSourceSets()

mods {
"template-mod" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}

runs {
// This adds a new gradle task that runs the datagen API: "gradlew runDatagen"
datagenClient {
inherit client
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
vmArg "-Dfabric-api.datagen.modid=${modid}"

runDir "build/datagen"
}
}
}

fabricApi {
configureDataGeneration()
// Add the generated resources to the main source set
sourceSets {
main {
resources {
srcDirs += [
'src/main/generated'
]
}
}
}

dependencies {
Expand Down

0 comments on commit a4c3d52

Please sign in to comment.