fabric/fabric-biome-api-v1/build.gradle
modmuss50 b69ba7fabe
23w03a (#2854)
* First look at 223w03a

* Fix login

* Support onboarding screen in client tests

* Fix AFTER_ENTITY_CHANGE_WORLD event

* Bump version
2023-01-18 21:21:41 +00:00

43 lines
906 B
Groovy

archivesBaseName = "fabric-biome-api-v1"
version = getSubprojectVersion(project)
loom {
accessWidenerPath = file("src/main/resources/fabric-biome-api-v1.accesswidener")
}
testDependencies(project, [
':fabric-api-base',
':fabric-resource-loader-v0',
':fabric-registry-sync-v0',
':fabric-data-generation-api-v1'
])
sourceSets {
testmod {
resources {
srcDirs += [
'src/testmod/generated'
]
}
}
}
loom {
runs {
datagen {
inherit testmodServer
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/testmod/generated")}"
vmArg "-Dfabric-api.datagen.strict-validation"
ideConfigGenerated = true
runDir "build/datagen"
}
}
}
// Ensure the worldgen JSONs are re-created to ensure the data-gen still works
test.dependsOn runDatagen
runTestmodClient.dependsOn runDatagen
generateResources.dependsOn runDatagen