fabric/fabric-biome-api-v1/build.gradle
modmuss f4b7e42468
Update to loom 1.3 and use Mod Publish Plugin (#3158)
* Update to loom 1.3

* Fix more 1.3 deprecations

* Opps

* Move to mod publish plugin

* Revert some changes

* Fix some more Gradle deprecations

* Fix names

* Remove extra stuff

* Cleanup
2023-08-02 18:51:21 +01:00

42 lines
861 B
Groovy

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