Fixed Registry handling

This commit is contained in:
Frank 2022-10-25 22:45:42 +02:00
parent 73687e3401
commit 95ea99e44d
13 changed files with 289 additions and 75 deletions

View file

@ -26,6 +26,29 @@ repositories {
loom {
accessWidenerPath = file("src/main/resources/bclib.accesswidener")
runs {
// This adds a new gradle task that runs the datagen API: "gradlew runDatagenClient"
datagenClient {
inherit client
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
vmArg "-Dfabric-api.datagen.strict-validation"
runDir "build/datagen"
}
}
}
// Add the datagenned files into the jar.
sourceSets {
main {
resources {
srcDirs += [
'src/main/generated'
]
}
}
}
dependencies {