mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-18 19:04:23 +01:00
Use newer loom features for datagen
This commit is contained in:
parent
ff47703140
commit
93d11531d6
1 changed files with 5 additions and 18 deletions
23
build.gradle
23
build.gradle
|
@ -28,18 +28,13 @@ archivesBaseName = project.name
|
||||||
loom {
|
loom {
|
||||||
mixin.defaultRefmapName = 'unicopia.mixin.refmap.json'
|
mixin.defaultRefmapName = 'unicopia.mixin.refmap.json'
|
||||||
accessWidenerPath = file('src/main/resources/unicopia.aw')
|
accessWidenerPath = file('src/main/resources/unicopia.aw')
|
||||||
runs {
|
}
|
||||||
datagen {
|
|
||||||
server()
|
fabricApi {
|
||||||
name "Data Generation"
|
configureDataGeneration {
|
||||||
vmArg "-Dfabric-api.datagen"
|
modId = 'unicopia'
|
||||||
vmArg "-Dfabric-api.datagen.modid=unicopia"
|
|
||||||
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
|
|
||||||
runDir "build/datagen"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//assemble.dependsOn(runDatagen)
|
|
||||||
|
|
||||||
reckon {
|
reckon {
|
||||||
scopeFromProp()
|
scopeFromProp()
|
||||||
|
@ -108,14 +103,6 @@ dependencies {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
resources {
|
|
||||||
srcDirs += [ "src/main/generated" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version.toString()
|
inputs.property "version", project.version.toString()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue