You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle
+62-1Lines changed: 62 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,17 @@ plugins {
2
2
id 'fabric-loom' version '0.12-SNAPSHOT'
3
3
id 'maven-publish'
4
4
id 'com.diffplug.spotless' version '5.14.0'
5
+
id 'com.matthewprenger.cursegradle' version '1.4.0'
6
+
id "com.modrinth.minotaur" version "1.2.1"
5
7
}
6
8
7
9
sourceCompatibility =JavaVersion.VERSION_17
8
10
targetCompatibility =JavaVersion.VERSION_17
9
11
10
12
archivesBaseName = project.archives_base_name
11
-
version = project.mod_version
13
+
version =System.getenv("MOD_VERSION")
14
+
?System.getenv("MOD_VERSION")
15
+
: "local"
12
16
group = project.maven_group
13
17
14
18
repositories {
@@ -205,3 +209,60 @@ final class JsonOrderStep {
205
209
privatefinalint formatVersion =1;
206
210
}
207
211
}
212
+
213
+
def releaseChannel ="release"
214
+
def changelog ="Please visit our github repository for a changelog: https://github.com/Technici4n/Modern-Dynamics/releases."
215
+
if (version.toLowerCase().contains("alpha")) {
216
+
releaseChannel ="alpha"
217
+
changelog ="THIS IS AN ALPHA RELEASE, MAKE A BACKUP BEFORE INSTALLING AND FREQUENTLY WHILE PLAYING, AND PLEASE REPORT ANY ISSUE YOU MAY FIND ON OUR ISSUE TRACKER.\n\n"+ changelog
0 commit comments