Port to 1.21.4 and more datagen

- Polymer mode is currently still broken
This commit is contained in:
Martin Prokoph
2024-12-30 22:32:35 +01:00
parent 75f9937035
commit f00ac39b79
365 changed files with 3364 additions and 1786 deletions

View File

@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'maven-publish'
id "me.shedaniel.unified-publishing" version "0.1.+"
}
@@ -13,19 +13,10 @@ group = project.maven_group
loom {
accessWidenerPath = file("src/main/resources/thisrocks.accesswidener")
runs {
//
// This adds a new gradle task that runs the datagen API: "gradlew runDatagenClient"
//
datagenClient {
inherit client
name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
vmArg "-Dfabric-api.datagen.modid=rocks"
runDir "build/datagen"
}
}
fabricApi {
configureDataGeneration {
client = true
}
}
@@ -52,6 +43,7 @@ dependencies {
modImplementation ("eu.pb4:polymer-core:${polymer_version}")
modImplementation ("eu.pb4:polymer-blocks:${polymer_version}")
modImplementation ("eu.pb4:polymer-resource-pack:${polymer_version}")
modImplementation ("eu.pb4:polymer-resource-pack-extras:${polymer_version}")
modImplementation ("eu.pb4:polymer-virtual-entity:${polymer_version}")
modImplementation ("eu.pb4:polymer-autohost:${polymer_version}")
modImplementation ("eu.pb4:factorytools:${factorytools_version}")
@@ -74,15 +66,6 @@ tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
sourceSets {
main {
resources {
srcDirs += [
'src/main/generated'
]
}
}
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task