|
1 | | -//version: 1753288091 |
| 1 | +//version: 1762213476 |
2 | 2 | /* |
3 | 3 | * DO NOT CHANGE THIS FILE! |
4 | 4 | * Also, you may replace this file at any time if there is an update available. |
5 | | - * Please check https://github.com/GTModpackTeam/Buildscripts/blob/master/build.gradle for updates. |
| 5 | + * Please check https://github.com/GregTechCEu/Buildscripts/blob/master/build.gradle for updates. |
6 | 6 | * You can also run ./gradlew updateBuildScript to update your buildscript. |
7 | 7 | */ |
8 | 8 |
|
@@ -318,14 +318,6 @@ tasks.withType(ScalaCompile).configureEach { |
318 | 318 | } |
319 | 319 |
|
320 | 320 |
|
321 | | -// Allow others using this buildscript to have custom gradle code run |
322 | | -if (getFile('addon.gradle').exists()) { |
323 | | - apply from: 'addon.gradle' |
324 | | -} else if (getFile('addon.gradle.kts').exists()) { |
325 | | - apply from: 'addon.gradle.kts' |
326 | | -} |
327 | | - |
328 | | - |
329 | 321 | // Configure Minecraft |
330 | 322 |
|
331 | 323 | // Try to gather mod version from git tags if version is not manually specified |
@@ -372,6 +364,9 @@ minecraft { |
372 | 364 |
|
373 | 365 | // JVM arguments |
374 | 366 | extraRunJvmArguments.add("-ea:${modGroup}") |
| 367 | + |
| 368 | + // enable JLine Terminal since idea_rt.jar is no longer added to the classpath |
| 369 | + extraRunJvmArguments.add('-Dterminal.jline=true') |
375 | 370 | if (usesMixins.toBoolean()) { |
376 | 371 | extraRunJvmArguments.addAll([ |
377 | 372 | '-Dmixin.hotSwap=true', |
@@ -1425,11 +1420,11 @@ if (!project.getGradle().startParameter.isOffline() && !Boolean.getBoolean('DISA |
1425 | 1420 | } |
1426 | 1421 |
|
1427 | 1422 | static URL availableBuildScriptUrl() { |
1428 | | - new URL("https://raw.githubusercontent.com/GTModpackTeam/Buildscripts/master/build.gradle") |
| 1423 | + new URL("https://raw.githubusercontent.com/GregTechCEu/Buildscripts/master/build.gradle") |
1429 | 1424 | } |
1430 | 1425 |
|
1431 | 1426 | static URL availableSettingsGradleUrl() { |
1432 | | - new URL("https://raw.githubusercontent.com/GTModpackTeam/Buildscripts/master/settings.gradle") |
| 1427 | + new URL("https://raw.githubusercontent.com/GregTechCEu/Buildscripts/master/settings.gradle") |
1433 | 1428 | } |
1434 | 1429 |
|
1435 | 1430 | boolean performBuildScriptUpdate() { |
@@ -1478,8 +1473,8 @@ tasks.register('faq') { |
1478 | 1473 | "To add new repositories to your project, place them in 'repositories.gradle'.\n" + |
1479 | 1474 | "If you need additional gradle code to run, you can place it in a file named 'addon.gradle' (or either of the above, up to you for organization).\n\n" + |
1480 | 1475 | "If your build fails to recognize the syntax of newer Java versions, enable Jabel in your 'buildscript.properties' under the option name 'enableModernJavaSyntax'.\n" + |
1481 | | - "To see information on how to configure your IDE properly for Java 17, see https://github.com/GTModpackTeam/Buildscripts/blob/master/docs/jabel.md\n\n" + |
1482 | | - "Report any issues or feature requests you have for this build script to https://github.com/GTModpackTeam/Buildscripts/issues\n") |
| 1476 | + "To see information on how to configure your IDE properly for Java 17, see https://github.com/GregTechCEu/Buildscripts/blob/master/docs/jabel.md\n\n" + |
| 1477 | + "Report any issues or feature requests you have for this build script to https://github.com/GregTechCEu/Buildscripts/issues\n") |
1483 | 1478 | } |
1484 | 1479 | } |
1485 | 1480 |
|
@@ -1511,7 +1506,7 @@ def getFile(String relativePath) { |
1511 | 1506 |
|
1512 | 1507 | def checkPropertyExists(String propertyName) { |
1513 | 1508 | if (!project.hasProperty(propertyName)) { |
1514 | | - throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"buildscript.properties\" or \"gradle.properties\". You can find all properties and their description here: https://github.com/GTModpackTeam/Buildscripts/blob/main/buildscript.properties and https://github.com/GTModpackTeam/Buildscripts/blob/main/gradle.properties") |
| 1509 | + throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"buildscript.properties\" or \"gradle.properties\". You can find all properties and their description here: https://github.com/GregTechCEu/Buildscripts/blob/main/buildscript.properties and https://github.com/GregTechCEu/Buildscripts/blob/main/gradle.properties") |
1515 | 1510 | } |
1516 | 1511 | } |
1517 | 1512 |
|
@@ -1549,3 +1544,11 @@ def getLastTag() { |
1549 | 1544 | return runShell('git describe --abbrev=0 --tags ' + |
1550 | 1545 | (githubTag.isPresent() ? runShell('git rev-list --tags --skip=1 --max-count=1') : '')) |
1551 | 1546 | } |
| 1547 | + |
| 1548 | + |
| 1549 | +// Allow others using this buildscript to have custom gradle code run |
| 1550 | +if (getFile('addon.gradle').exists()) { |
| 1551 | + apply from: 'addon.gradle' |
| 1552 | +} else if (getFile('addon.gradle.kts').exists()) { |
| 1553 | + apply from: 'addon.gradle.kts' |
| 1554 | +} |
0 commit comments