-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.20.1' of https://github.com/YoungOnionMC/GregTech-Modern
into yo/pipe-damage # Conflicts: # src/main/java/com/gregtechceu/gtceu/common/block/FluidPipeBlock.java
- Loading branch information
Showing
1,178 changed files
with
32,106 additions
and
19,845 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build Setup | ||
description: Setup for standard Java builds | ||
|
||
inputs: | ||
update-cache: | ||
description: If cache should be updated | ||
required: false | ||
default: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
|
||
- name: Grant execute permission for gradlew | ||
shell: bash | ||
run: chmod +x gradlew | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-write-only: ${{ inputs.update-cache }} | ||
generate-job-summary: false | ||
gradle-home-cache-includes: | | ||
caches | ||
notifications | ||
jdks | ||
wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Runs formatting requirements | ||
name: Java Formatting | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: ['src/main/java/**', 'src/test/**'] | ||
pull_request: | ||
paths: ['src/main/java/**', 'src/test/**'] | ||
|
||
concurrency: | ||
group: formatting-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
formatting: | ||
name: Formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Build | ||
uses: ./.github/actions/build_setup | ||
|
||
- name: Run Spotless Formatting Check with Gradle | ||
run: ./gradlew spotlessCheck --warning-mode all --build-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Spotless auto-formatter | ||
// See https://github.com/diffplug/spotless/tree/main/plugin-gradle | ||
// Can be locally toggled via spotless:off/spotless:on comments | ||
spotless { | ||
encoding 'UTF-8' | ||
|
||
format 'misc', { | ||
target '.gitignore' | ||
|
||
trimTrailingWhitespace() | ||
indentWithSpaces(4) | ||
endWithNewline() | ||
} | ||
java { | ||
target 'src/main/java/**/*.java', 'src/test/java/**/*.java' | ||
|
||
def orderFile = file("$rootDir/spotless/spotless.importorder") | ||
def formatFile = file("$rootDir/spotless/spotless.eclipseformat.xml") | ||
|
||
toggleOffOn() | ||
importOrderFile(orderFile) | ||
removeUnusedImports('cleanthat-javaparser-unnecessaryimport') | ||
endWithNewline() | ||
eclipse('4.31').configFile(formatFile) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.