We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 623e663 commit 3cae407Copy full SHA for 3cae407
build.gradle
@@ -94,10 +94,12 @@ allprojects {
94
95
publishMods {
96
def TOKENS = new HashMap<String, String>();
97
- file("$projectDir/.env").readLines().each() {
98
- def (key, value) = it.tokenize('=')
99
- TOKENS.put(key, value)
100
- }
+ def envFile = file("$projectDir/.env");
+ if (envFile.exists())
+ envFile.readLines().each() {
+ def (key, value) = it.tokenize('=')
101
+ TOKENS.put(key, value)
102
+ }
103
104
def cfg = new Yaml().load(new File("$projectDir/changelog.yaml").newInputStream())
105
def changelogText = cfg[minecraft_version + "-" + mod_version];
0 commit comments