Skip to content

Commit

Permalink
A bit more progress with dependency datagen... ugh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Electro593 committed Mar 2, 2025
1 parent 3e51ab7 commit 10abb0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
35 changes: 12 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ repositories {
mavenCentral()
}

fabricApi {
configureDataGeneration {
client = true
modId = project.archives_base_name
createSourceSet = true
}
}

dependencies {
// jetbrains annotations
implementation("org.jetbrains:annotations:26.0.1")
Expand Down Expand Up @@ -106,33 +114,14 @@ dependencies {
}

// Datagen dependencies
// modDatagenRuntimeOnly("curse.maven:gobber-427177:${project.gobber_version}")
// modDatagenRuntimeOnly("org.appliedenergistics:appliedenergistics2:${project.ae2_version}")
// modDatagenRuntimeOnly("maven.modrinth:create-fabric:${project.create_version}")
}

fabricApi {
configureDataGeneration {
client = true
modId = project.archives_base_name
createSourceSet = true
}
// modDatagenImplementation("curse.maven:gobber-427177:${project.gobber_version}")
// modDatagenRuntimeOnly("maven.modrinth:ae2:${project.ae2_version}")
// modDatagenRuntimeOnly("maven.modrinth:botania:${project.botania_version}") // TODO 1.21.1
// modDatagenRuntimeOnly("maven.modrinth:create-fabric:${project.create_version}") // TODO 1.21.1
}

loom {
accessWidenerPath = file("src/main/resources/spectrum.accesswidener")

runs {
datagen {
server()

name "Minecraft Data"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"

runDir "build/datagen"
}
}
}

processResources {
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ port_lib_modules=lazy_registration
exclusionslib_version=0.6
# https://modrinth.com/mod/vanity
vanityslots_version=1.2.9

# What recipe viewer to use ('emi', 'rei', or 'disabled')
recipe_viewer=emi
# Datagen runtime mod versions
gobber_version=5736976
ae2_version=15.3.3
ae2_version=T1yX86cQ

0 comments on commit 10abb0d

Please sign in to comment.