1- import me.modmuss50.mpp.ReleaseType
2-
31plugins {
42 id ' multiloader-loader'
53 id ' net.neoforged.moddev'
6- id " me.modmuss50.mod-publish-plugin" version " 1.1.0 "
4+ id " me.modmuss50.mod-publish-plugin"
75}
86version = " ${ version}${ neoVersionAppend} "
97
@@ -23,7 +21,7 @@ neoForge {
2321 runs {
2422 configureEach {
2523 systemProperty(' neoforge.enabledGameTestNamespaces' , mod_id)
26- ideName = " NeoForge ${ it.name.capitalize()} (${ project.path} )" // Unify the run config names with fabric
24+ ideName = " NeoForge ${ it.name.capitalize()} (${ project.path} )"
2725 }
2826 client {
2927 client()
@@ -64,37 +62,10 @@ neoForge {
6462 implementation " curse.maven:glitchcore-955399:5660740"
6563 implementation " curse.maven:serene-seasons-291874:5753503"
6664
67- // runtimeOnly "curse.maven:distant-horizons-508933:7328639"
6865 runtimeOnly " curse.maven:patchouli-306770:6164617"
6966 runtimeOnly " curse.maven:spark-361579:6225208"
7067 }
7168
7269}
7370
7471sourceSets. main. resources { srcDir ' src/generated/resources' }
75-
76- def changelogFile = file(" ../neoforge/build/changelog.txt" )
77-
78- publishMods {
79- file = jar. archiveFile
80- displayName = " ${ mod_name.replace(' ','')} -NeoForge-${ minecraft_version} ${ project.version} "
81- if (changelogFile. exists()) {
82- changelog. set(changelogFile. getText())
83- }
84- type = ReleaseType . of(versionType. toUpperCase())
85- modLoaders. add(" neoforge" )
86-
87- curseforge {
88- projectId = " 252818"
89- projectSlug = " dynamictrees"
90- accessToken = providers. gradleProperty(" curseApiKey" ). orElse(providers. environmentVariable(" CURSEFORGE_API_KEY" )). orNull
91- minecraftVersions. add(" 1.21.1" )
92- optional(" dynamictreesplus" )
93- }
94- modrinth {
95- projectId = " vdjF5PL5"
96- accessToken = providers. gradleProperty(" modrinthToken" ). orElse(providers. environmentVariable(" MODRINTH_TOKEN" )). orNull
97- minecraftVersions. add(" 1.21.1" )
98- optional(" qaO9Dqpu" )
99- }
100- }
0 commit comments