2020-09-18 13:11:51 -04:00
|
|
|
archivesBaseName = "fabric-biome-api-v1"
|
2021-11-12 07:48:58 -05:00
|
|
|
version = getSubprojectVersion(project)
|
2020-10-30 16:08:54 -04:00
|
|
|
|
2021-08-31 09:00:20 -04:00
|
|
|
loom {
|
|
|
|
accessWidenerPath = file("src/main/resources/fabric-biome-api-v1.accesswidener")
|
2020-10-30 16:08:54 -04:00
|
|
|
}
|
2021-08-24 12:44:19 -04:00
|
|
|
|
2022-05-21 11:26:46 -04:00
|
|
|
testDependencies(project, [
|
|
|
|
':fabric-api-base',
|
2022-10-22 15:38:33 -04:00
|
|
|
':fabric-resource-loader-v0',
|
|
|
|
':fabric-registry-sync-v0',
|
|
|
|
':fabric-data-generation-api-v1'
|
2022-05-21 11:26:46 -04:00
|
|
|
])
|
2022-10-22 15:38:33 -04:00
|
|
|
|
|
|
|
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
|