Use newer loom features for datagen

This commit is contained in:
Sollace 2024-03-27 19:44:12 +00:00
parent ff47703140
commit 93d11531d6
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -28,18 +28,13 @@ archivesBaseName = project.name
loom {
mixin.defaultRefmapName = 'unicopia.mixin.refmap.json'
accessWidenerPath = file('src/main/resources/unicopia.aw')
runs {
datagen {
server()
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.modid=unicopia"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
runDir "build/datagen"
}
}
fabricApi {
configureDataGeneration {
modId = 'unicopia'
}
}
//assemble.dependsOn(runDatagen)
reckon {
scopeFromProp()
@ -108,14 +103,6 @@ dependencies {
}
}
sourceSets {
main {
resources {
srcDirs += [ "src/main/generated" ]
}
}
}
processResources {
inputs.property "version", project.version.toString()