File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 2323runs
2424run-data
2525
26- repo
26+ repo
27+ /libs
Original file line number Diff line number Diff line change 1+ import me.modmuss50.mpp.ReleaseType
2+
13plugins {
24 id ' java-library'
35 id ' eclipse'
@@ -131,6 +133,31 @@ publishing {
131133 }
132134}
133135
136+ def changelogFile = file(" build/changelog.txt" )
137+
138+ publishMods {
139+ file = jar. archiveFile
140+ if (changelogFile. exists()) {
141+ changelog. set(changelogFile. getText())
142+ }
143+ type = ReleaseType . of(version_type. toUpperCase())
144+ modLoaders. add(" neoforge" )
145+
146+ curseforge {
147+ projectId = " 478155"
148+ projectSlug = " dynamictreesplus" // Required for discord webhook
149+ accessToken = curseApiKey ?: System . getenv(" CURSEFORGE_API_KEY" )
150+ minecraftVersions. add(" 1.21.1" )
151+ requires(" 252818" )
152+ }
153+ modrinth {
154+ projectId = " qaO9Dqpu"
155+ accessToken = modrinthToken ?: System . getenv(" MODRINTH_TOKEN" )
156+ minecraftVersions. add(" 1.21.1" )
157+ requires(" vdjF5PL5" )
158+ }
159+ }
160+
134161tasks. withType(JavaCompile ). configureEach {
135162 options. encoding = ' UTF-8' // Use the UTF-8 charset for Java compilation
136163}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ mod_id=dynamictreesplus
33mod_name =DynamicTreesPlus
44mod_license =MIT
55mod_version =1.3.0
6+ version_type =beta
67mod_group_id =com.dtteam.dynamictreesplus
78mod_authors =Ferreusveritas, Max Hyper, Harley O'Connor
89mod_credits =
You can’t perform that action at this time.
0 commit comments