11plugins {
2- id ' fabric-loom' version ' 1.13 .+'
2+ id ' net.fabricmc. fabric-loom' version ' 1.15 .+'
33 id " com.modrinth.minotaur" version " 2.+"
44 id ' maven-publish'
55}
66
7-
8- sourceCompatibility = JavaVersion . VERSION_21
9- targetCompatibility = JavaVersion . VERSION_21
10-
11- archivesBaseName = project. archives_base_name
7+ base {
8+ archivesName = project. archives_base_name
9+ }
1210group = project. maven_group
1311
1412if (System . getenv(" CI" ) != null ) {
3028 name = " Data Generation"
3129 runDir = " build/datagen"
3230 vmArg(" -Dfabric-api.datagen" )
33- vmArg(" -Dfabric-api.datagen.modid =polydecorations" )
31+ vmArg(" -Dfabric-api.datagen.id =polydecorations" )
3432 vmArg(" -Dfabric-api.datagen.output-dir=${ file("src/main/generated")} " )
3533 }
3634 }
@@ -68,34 +66,33 @@ repositories {
6866dependencies {
6967 // To change the versions see the gradle.properties file
7068 minecraft " com.mojang:minecraft:${ project.minecraft_version} "
71- mappings loom. officialMojangMappings()
72- modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
69+ implementation " net.fabricmc:fabric-loader:${ project.loader_version} "
7370
7471 // Fabric API. This is technically optional, but you probably want it anyway.
75- modImplementation " net.fabricmc.fabric-api:fabric-api:${ project.fabric_version } "
76-
77- modImplementation ' eu.pb4:polymer-core:0.15.1+1.21.11 '
78- modImplementation ' eu.pb4:polymer-blocks:0.15.1+1.21.11 '
79- modImplementation ' eu.pb4:polymer-resource-pack:0.15.1+1.21.11 '
80- modImplementation ' eu.pb4:polymer-resource-pack-extras:0.15.1+1.21.11 '
81- modImplementation ' eu.pb4:polymer-autohost:0.15.1+1.21.11 '
82- modImplementation ' eu.pb4:polymer-virtual-entity:0.15.1+1.21.11 '
83- modImplementation include(' eu.pb4:common-protection-api:1 .0.0' )
84- modImplementation include(' eu.pb4:sgui:1.12 .0+1.21.11 ' )
85- modImplementation include(' eu.pb4:map-canvas-api:0.7 .0+1.21.11 ' )
86- modImplementation include(' eu.pb4:factorytools:0.9.3+1.21.11 ' )
87- modImplementation include(' nl.theepicblock:resource-locator-api:0.6.3-drex+1.21.11 ' )
72+ implementation " net.fabricmc.fabric-api:fabric-api:${ project.fabric_api_version } "
73+
74+ implementation ' eu.pb4:polymer-core:0.16.0-pre.4+26.1 '
75+ implementation ' eu.pb4:polymer-blocks:0.16.0-pre.4+26.1 '
76+ implementation ' eu.pb4:polymer-resource-pack:0.16.0-pre.4+26.1 '
77+ implementation ' eu.pb4:polymer-resource-pack-extras:0.16.0-pre.4+26.1 '
78+ implementation ' eu.pb4:polymer-autohost:0.16.0-pre.4+26.1 '
79+ implementation ' eu.pb4:polymer-virtual-entity:0.16.0-pre.4+26.1 '
80+ implementation include(' eu.pb4:common-protection-api:2 .0.0' )
81+ implementation include(' eu.pb4:sgui:2.0 .0+26.1 ' )
82+ implementation include(' eu.pb4:map-canvas-api:0.8 .0+26.1 ' )
83+ implementation include(' eu.pb4:factorytools:0.10.0-pre.2+26.1 ' )
84+ implementation include(' nl.theepicblock:resource-locator-api:0.7.0-patbox+26.1 ' )
8885
8986 // Temp hack to allow development
90- // modImplementation include('com.kneelawk:graphlib:1.99.99+1.20.local')
91- // modImplementation include('alexiil.mc.lib:libnetworkstack-base:0.11.0-aaa.patbox')
87+ // implementation include('com.kneelawk:graphlib:1.99.99+1.20.local')
88+ // implementation include('alexiil.mc.lib:libnetworkstack-base:0.11.0-aaa.patbox')
9289
93- modCompileOnly ' maven.modrinth :polydex:1.3.0+1.21.2 '
90+ compileOnly ' eu.pb4 :polydex:1.9.2+26.1-rc-3 '
9491
9592 // Uncomment the following line to enable the deprecated Fabric API modules.
9693 // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
9794
98- // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
95+ // implementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
9996}
10097
10198processResources {
@@ -108,7 +105,7 @@ processResources {
108105
109106tasks. withType(JavaCompile ). configureEach {
110107 // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
111- it. options. release = 21
108+ it. options. release = 25
112109}
113110
114111java {
@@ -120,7 +117,7 @@ java {
120117
121118jar {
122119 from(" LICENSE" ) {
123- rename { " ${ it} _${ project.archivesBaseName } " }
120+ rename { " ${ it} _${ project.archives_base_name } " }
124121 }
125122}
126123
@@ -147,18 +144,18 @@ if (System.getenv("MODRINTH")) {
147144 projectId = ' 5710VC7f' // The ID of your modrinth project, slugs will not work.
148145 versionNumber = " " + version // The version of the mod to upload.
149146 versionType = " release"
150- uploadFile = remapJar // This links to a task that builds your mod jar and sets "uploadFile" to the mod jar.
147+ uploadFile = jar // This links to a task that builds your mod jar and sets "uploadFile" to the mod jar.
151148 gameVersions = [((String ) project. minecraft_version)]
152149 changelog = System . getenv(" CHANGELOG" )
153- loaders = [" fabric" /* , "quilt" */ ]
150+ loaders = [" fabric" ]
154151
155152 dependencies {
156153 required. project " polymer"
157154 optional. project " armorstandeditor"
158155 }
159156 }
160157
161- remapJar {
158+ jar {
162159 finalizedBy project. tasks. modrinth
163160 }
164161}
0 commit comments