@@ -6,7 +6,7 @@ plugins {
66 id " com.modrinth.minotaur"
77}
88
9- archivesBaseName = project. archives_base_name
9+ def archivesBaseName = project. archives_base_name
1010version = System . getenv(" MOD_VERSION" )
1111 ? System . getenv(" MOD_VERSION" )
1212 : " 0.0.0"
@@ -86,10 +86,11 @@ dependencies {
8686}
8787
8888processResources {
89- inputs. property " version" , project. version
89+ def version = project. version
90+ inputs. property " version" , version
9091
91- filesMatching(" META-INF/mods.toml" ) {
92- expand " version" : project . version
92+ filesMatching(" META-INF/neoforge. mods.toml" ) {
93+ expand " version" : version
9394 }
9495}
9596
@@ -158,7 +159,7 @@ tasks.withType(JavaCompile).configureEach {
158159
159160jar {
160161 from(" LICENSE" ) {
161- rename { " ${ it} _${ project. archivesBaseName} " }
162+ rename { " ${ it} _${ archivesBaseName} " }
162163 }
163164}
164165
@@ -257,9 +258,9 @@ if (System.getenv("CURSEFORGE_API_KEY") && !version.endsWith("-SNAPSHOT")) {
257258 changelogType = " markdown"
258259 delegate. changelog = changelog
259260
260- addGameVersion " 1.20.4 "
261+ addGameVersion " 1.21 "
261262 addGameVersion " NeoForge"
262- addGameVersion " Java 17 "
263+ addGameVersion " Java 21 "
263264
264265 mainArtifact(jar. archiveFile) {
265266 displayName = " Modern Dynamics v${ version} "
@@ -283,7 +284,7 @@ if (System.getenv("MODRINTH_API_KEY") && !version.endsWith("-SNAPSHOT")) {
283284 delegate. changelog = changelog
284285 versionType = releaseChannel. toUpperCase()
285286 uploadFile = jar. archiveFile
286- gameVersions = [" 1.20.4 " ]
287+ gameVersions = [" 1.21 " ]
287288 loaders = [" neoforge" ]
288289 }
289290}
0 commit comments