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 23
23
runs
24
24
run-data
25
25
26
- repo
26
+ repo
27
+ /libs
Original file line number Diff line number Diff line change
1
+ import me.modmuss50.mpp.ReleaseType
2
+
1
3
plugins {
2
4
id ' java-library'
3
5
id ' eclipse'
@@ -131,6 +133,31 @@ publishing {
131
133
}
132
134
}
133
135
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
+
134
161
tasks. withType(JavaCompile ). configureEach {
135
162
options. encoding = ' UTF-8' // Use the UTF-8 charset for Java compilation
136
163
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ mod_id=dynamictreesplus
3
3
mod_name =DynamicTreesPlus
4
4
mod_license =MIT
5
5
mod_version =1.3.0
6
+ version_type =beta
6
7
mod_group_id =com.dtteam.dynamictreesplus
7
8
mod_authors =Ferreusveritas, Max Hyper, Harley O'Connor
8
9
mod_credits =
You can’t perform that action at this time.
0 commit comments