aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2023-05-06 09:08:41 +0200
committerMartin Robertz <dream-master@gmx.net>2023-05-06 17:08:25 +0200
commitb709f5355c6b1680460d385d56f832fe993efcac (patch)
treea1cdd45a6d9806143ada73c5483228f77ac394ac /build.gradle
parent397cc96c658c7673d75506a4b6697b2d67e2b136 (diff)
downloadGT5-Unofficial-b709f5355c6b1680460d385d56f832fe993efcac.tar.gz
GT5-Unofficial-b709f5355c6b1680460d385d56f832fe993efcac.tar.bz2
GT5-Unofficial-b709f5355c6b1680460d385d56f832fe993efcac.zip
update bs
(cherry picked from commit bcd1bfb50446b744ab087c4e00dd423cf7d2dd7a) Former-commit-id: 0c8cacd35b1d1b0729f985e1410bb687f79c4089
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 17e7501a27..6243482331 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,4 +1,4 @@
-//version: 1682616243
+//version: 1683056771
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -71,6 +71,9 @@ plugins {
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.7'
}
+
+print("You might want to check out './gradlew :faq' if your build fails.")
+
boolean settingsupdated = verifySettingsGradle()
settingsupdated = verifyGitAttributes() || settingsupdated
if (settingsupdated)
@@ -1252,6 +1255,19 @@ if (!project.getGradle().startParameter.isOffline() && !Boolean.getBoolean('DISA
}
}
+// If you want to add more cases to this task, implement them as arguments if total amount to print gets too large
+tasks.register('faq') {
+ group = 'GTNH Buildscript'
+ description = 'Prints frequently asked questions about building a project'
+
+ doLast {
+ print("If your build fails to fetch dependencies, they might have been deleted and replaced by newer " +
+ "versions.\nCheck if the versions you try to fetch are still on the distributing sites.\n" +
+ "The links can be found in repositories.gradle and build.gradle:repositories, " +
+ "not build.gradle:buildscript.repositories - this one is for gradle plugin metadata.")
+ }
+}
+
static URL availableBuildScriptUrl() {
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/master/build.gradle")
}