Fixed Registry handling
This commit is contained in:
parent
73687e3401
commit
95ea99e44d
13 changed files with 289 additions and 75 deletions
23
bclib.gradle
23
bclib.gradle
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue