Skip to content

Commit 40f49a3

Browse files
committed
(1.21.x): java, architectury migration
1 parent c20da28 commit 40f49a3

File tree

105 files changed

+1661
-1741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1661
-1741
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build fabric
2+
on:
3+
pull_request:
4+
branches: [ "**" ]
5+
paths:
6+
- .github/workflows/build-fabric.yaml
7+
- build.gradle.kts
8+
- gradle.properties
9+
- gradle/**
10+
- common/**
11+
- fabric/**
12+
push:
13+
branches: [ "main" ]
14+
paths:
15+
- .github/workflows/build-fabric.yaml
16+
- build.gradle.kts
17+
- gradle.properties
18+
- gradle/**
19+
- common/**
20+
- fabric/**
21+
22+
jobs:
23+
build:
24+
strategy:
25+
matrix:
26+
os: [ubuntu-latest, windows-latest]
27+
runs-on: ${{ matrix.os }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-java@v4
31+
with:
32+
distribution: temurin
33+
java-version: 21
34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@v4
36+
with:
37+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
38+
- name: Gradle Build
39+
run: ./gradlew :fabric:build
40+
- name: capture build artifacts
41+
if: ${{ runner.os == 'Linux' }}
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: Artifacts
45+
path: fabric/build/libs/

.github/workflows/build-fabric.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/build-forge.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build neoforge
2+
on:
3+
pull_request:
4+
branches: [ "**" ]
5+
paths:
6+
- .github/workflows/build-neoforge.yaml
7+
- build.gradle.kts
8+
- gradle.properties
9+
- gradle/**
10+
- common/**
11+
- fabric/**
12+
push:
13+
branches: [ "main" ]
14+
paths:
15+
- .github/workflows/build-neoforge.yaml
16+
- build.gradle.kts
17+
- gradle.properties
18+
- gradle/**
19+
- common/**
20+
- fabric/**
21+
22+
jobs:
23+
build:
24+
strategy:
25+
matrix:
26+
os: [ubuntu-latest, windows-latest]
27+
runs-on: ${{ matrix.os }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-java@v4
31+
with:
32+
distribution: temurin
33+
java-version: 21
34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@v4
36+
with:
37+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
38+
- name: Gradle Build
39+
run: ./gradlew :neoforge:build
40+
- name: capture build artifacts
41+
if: ${{ runner.os == 'Linux' }}
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: Artifacts
45+
path: neoforge/build/libs/

.github/workflows/release-fabric.yml renamed to .github/workflows/release-fabric.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
tags:
55
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
6-
# Example: 1.0.0-MC1.19.x-fabric
6+
# Example: 2.0.0-MC1.21.x-fabric
77
- "[0-9]+.[0-9]+.[0-9]+-MC[0-9]+.[0-9]+.[0-9x]+-fabric"
88

99
permissions:
@@ -13,23 +13,20 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
os: [ ubuntu-latest ]
16+
os: [ubuntu-latest]
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-java@v3
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-java@v4
2121
with:
2222
distribution: temurin
23-
java-version: 17
24-
- name: build
25-
uses: gradle/gradle-build-action@v2
26-
with:
27-
gradle-version: 8.1.1
28-
build-root-directory: fabric
29-
arguments: build
30-
cache-read-only: true
23+
java-version: 21
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
- name: Gradle Build
27+
run: ./gradlew :fabric:build
3128
- name: Release
32-
uses: softprops/action-gh-release@v1
29+
uses: softprops/action-gh-release@v2
3330
with:
34-
body_path: CHANGELOG-fabric.md
31+
body_path: CHANGELOG_FABRIC.md
3532
files: ./fabric/build/libs/**

.github/workflows/release-forge.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: release fabric
2+
on:
3+
push:
4+
tags:
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
6+
# Example: 2.0.0-MC1.21.x-fabric
7+
- "[0-9]+.[0-9]+.[0-9]+-MC[0-9]+.[0-9]+.[0-9x]+-neoforge"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 21
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
- name: Gradle Build
27+
run: ./gradlew :fabric:build
28+
- name: Release
29+
uses: softprops/action-gh-release@v2
30+
with:
31+
body_path: CHANGELOG_NEOFORGE.md
32+
files: ./neoforge/build/libs/**

.gitignore

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1-
.idea/
2-
.gradle/
1+
logs/
32

4-
build/
5-
fabric/run/
6-
forge/run/
3+
# eclipse
4+
bin
5+
*.launch
6+
.settings
7+
.metadata
8+
.classpath
9+
.project
10+
11+
# idea
12+
out
13+
*.ipr
14+
*.iws
15+
*.iml
16+
.idea
17+
18+
# gradle
19+
build
20+
.gradle
21+
22+
# other
23+
eclipse
24+
run
25+
26+
# Files from Forge MDK
27+
forge*changelog.txt

CHANGELOG-fabric.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)