mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +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 {
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue