diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..63c21c5 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,30 @@ +name: Test + +on: [push] + +jobs: + Build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: 17 + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle + - name: Grant execute permission to gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - uses: actions/upload-artifact@v2 + with: + name: Compiled artifacts for ${{ github.sha }} + path: build/libs diff --git a/README.md b/README.md index d52110a..66c75a6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Items are retained on the bag items themselves. The bag items are equipped throu - [x] Fixing Repository gradle repos - [x] Splitting up versions based on branches - [x] Getting a build from this repo -- [ ] Satchel renders on the wearer +- [ ] Satchel renders on the wearer (IN PROGRESS) - [ ] Updating to 1.20.1 ## Credits diff --git a/build.gradle b/build.gradle index 9357360..866a6a8 100644 --- a/build.gradle +++ b/build.gradle @@ -23,9 +23,20 @@ repositories { name = "TerraformersMC" url = "https://maven.terraformersmc.com/" } - maven { url "https://maven.shedaniel.me" } + maven { + url "https://maven.shedaniel.me" + } + maven { + name = 'GeckoLib' + url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' + content { + includeGroupByRegex("software\\.bernie.*") + includeGroup("com.eliotlash.mclib") + } + } } + dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" @@ -34,7 +45,7 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - + modImplementation 'software.bernie.geckolib:geckolib-fabric-1.19:3.1.40' modImplementation "dev.emi:trinkets:${trinkets_version}" modCompileOnly "dev.emi:emi-fabric:${emi_version}:api" modLocalRuntime "dev.emi:emi-fabric:${emi_version}"