mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 15:47:57 -05:00
75e98211bd
Co-authored-by: shartte <shartte@users.noreply.github.com> Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
42 lines
867 B
Groovy
42 lines
867 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
|