Skip to content

Commit

Permalink
Switch to gradle-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jun 11, 2022
1 parent 1ef6500 commit 5eed0e4
Show file tree
Hide file tree
Showing 44 changed files with 189 additions and 386 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/gradle.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,20 @@ jobs:
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
run: chmod +x ./gradlecw
- name: build
run: ./gradlew build
run: ./gradlecw build
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: |
FPFabric/build/libs/
FPForge/build/libs/
FPFabric/build/libs/*
FPForge/build/libs/*
34 changes: 34 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create Release

on: create

jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
17
]
# and run on both Linux and Windows
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlecw
- name: build
run: ./gradlecw build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
FPFabric/build/libs/*
FPForge/build/libs/*
17 changes: 15 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ build/
out/
classes/

# eclipse

*.launch

# idea

.idea/
Expand All @@ -20,8 +24,17 @@ bin/
.classpath
.project

# macos

*.DS_Store

# fabric

run/
**/logs/latest.log
logs/debug.log

# compose

*.gradle
*.properties
gradle/wrapper
VersionShared
23 changes: 0 additions & 23 deletions FPFabric/build.gradle

This file was deleted.

37 changes: 0 additions & 37 deletions FPForge/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion FPForge/gradle.properties

This file was deleted.

32 changes: 0 additions & 32 deletions FPShared/build.gradle

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.google.gson.GsonBuilder;
import com.mojang.blaze3d.vertex.PoseStack;

import dev.tr7zw.firstperson.config.CustomConfigScreen;
import dev.tr7zw.config.CustomConfigScreen;
import dev.tr7zw.firstperson.config.FirstPersonSettings;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -110,6 +110,12 @@ public void save() {
writeSettings();
}

@Override
public void reset() {
config = new FirstPersonSettings();
writeSettings();
}

};

return screen;
Expand Down
Loading

0 comments on commit 5eed0e4

Please sign in to comment.