Skip to content

Commit f5c7e40

Browse files
committed
Remove version check
Signed-off-by: SizableShrimp <[email protected]>
1 parent 5be7818 commit f5c7e40

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Jenkinsfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ pipeline {
4040
steps {
4141
withGradle {
4242
sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test'
43-
}
44-
script {
45-
env.MYGROUP = sh(returnStdout: true, script: './gradlew properties -q | grep "group:" | awk \'{print $2}\'').trim()
46-
env.MYARTIFACT = sh(returnStdout: true, script: './gradlew properties -q | grep "name:" | awk \'{print $2}\'').trim()
47-
env.MYVERSION = sh(returnStdout: true, script: './gradlew properties -q | grep "version:" | awk \'{print $2}\'').trim()
43+
gradleVersion(this)
4844
}
4945
}
5046
}

src/main/java/net/minecraftforge/gradle/common/BasePlugin.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,16 +254,8 @@ protected void afterEvaluate()
254254
"ext", "zip"
255255
));
256256

257-
// Check FG Version, unless its disabled
258-
List<String> lines = Lists.newArrayListWithExpectedSize(5);
259-
Object disableUpdateCheck = project.getProperties().get("net.minecraftforge.gradle.disableUpdateChecker");
260-
if (!"true".equals(disableUpdateCheck) && !"yes".equals(disableUpdateCheck) && !new Boolean(true).equals(disableUpdateCheck))
261-
{
262-
doFGVersionCheck(lines);
263-
}
264-
265257
LOGGER.warn("WARNING: You are using an unsupported version of ForgeGradle.");
266-
LOGGER.warn("Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.");
258+
LOGGER.warn("Please consider upgrading to ForgeGradle 5 and helping in the efforts to get old versions working on the modern toolchain.");
267259
LOGGER.warn("See https://gist.github.com/TheCurle/fe7ad3ede188cbdd15c235cc75d52d4a for more info on contributing.");
268260

269261
if (!displayBanner)
@@ -279,9 +271,6 @@ protected void afterEvaluate()
279271
LOGGER.lifecycle(" R4wk, ZeuX, IngisKahn, bspkrs ");
280272
LOGGER.lifecycle("#################################################");
281273

282-
for (String str : lines)
283-
LOGGER.lifecycle(str);
284-
285274
displayBanner = false;
286275
}
287276

0 commit comments

Comments
 (0)