diff options
author | Martin Robertz <dream-master@gmx.net> | 2023-05-06 17:15:25 +0200 |
---|---|---|
committer | Martin Robertz <dream-master@gmx.net> | 2023-05-06 17:15:25 +0200 |
commit | 5c5d0a285b9cb4b137f53e5b88a2f0327294ff4f (patch) | |
tree | 863ea5d18d99230661070ec7212018d022bc521c | |
parent | d945860185b888709300e28ae1c9db88799856c0 (diff) | |
download | GT5-Unofficial-5c5d0a285b9cb4b137f53e5b88a2f0327294ff4f.tar.gz GT5-Unofficial-5c5d0a285b9cb4b137f53e5b88a2f0327294ff4f.tar.bz2 GT5-Unofficial-5c5d0a285b9cb4b137f53e5b88a2f0327294ff4f.zip |
update bs
-rw-r--r-- | build.gradle | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 17e7501a27..e8241eeaa8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1682616243 +//version: 1683373797 /* 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.\n") + boolean settingsupdated = verifySettingsGradle() settingsupdated = verifyGitAttributes() || settingsupdated if (settingsupdated) @@ -219,6 +222,8 @@ if (enableModernJavaSyntax.toBoolean()) { dependencies { annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.0' + // workaround for https://github.com/bsideup/jabel/issues/174 + annotationProcessor 'net.java.dev.jna:jna-platform:5.13.0' compileOnly('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0') { transitive = false // We only care about the 1 annotation class } @@ -1252,6 +1257,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") } |