Skip to content

Commit ca79ea0

Browse files
authored
Merge pull request #14 from GalvinPython/copilot/update-fabric-mod-repos
gets me started on this at least
2 parents 4a776e8 + 115d043 commit ca79ea0

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,34 @@
44
# against bad commits.
55

66
name: build
7-
on: [pull_request, push]
7+
8+
on:
9+
pull_request:
10+
paths: &build_paths
11+
- '.github/workflows/build.yml'
12+
- 'build.gradle'
13+
- 'gradle.properties'
14+
- 'gradle/**'
15+
- 'gradlew'
16+
- 'gradlew.bat'
17+
- 'settings.gradle'
18+
- 'src/**'
19+
20+
push:
21+
branches: [main]
22+
paths: *build_paths
23+
24+
concurrency:
25+
group: "java-build-${{ github.ref }}"
26+
cancel-in-progress: true
827

928
jobs:
1029
build:
1130
strategy:
1231
matrix:
1332
# Use these Java versions
1433
java: [
15-
21, # Current Java LTS
34+
25, # Current Java LTS
1635
]
1736
runs-on: ubuntu-22.04
1837
steps:
@@ -30,8 +49,8 @@ jobs:
3049
- name: build
3150
run: ./gradlew build
3251
- name: capture build artifacts
33-
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
52+
if: ${{ matrix.java == '25' }} # Only upload artifacts built from latest java
3453
uses: actions/upload-artifact@v4
3554
with:
3655
name: Artifacts
37-
path: build/libs/
56+
path: build/libs/

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version "${loom_version}"
2+
id 'net.fabricmc.fabric-loom' version "${loom_version}"
33
id 'maven-publish'
44
}
55

@@ -21,11 +21,10 @@ repositories {
2121
dependencies {
2222
// To change the versions see the gradle.properties file
2323
minecraft "com.mojang:minecraft:${project.minecraft_version}"
24-
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
25-
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
24+
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
2625

2726
// Fabric API. This is technically optional, but you probably want it anyway.
28-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
27+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
2928

3029
}
3130

@@ -38,7 +37,7 @@ processResources {
3837
}
3938

4039
tasks.withType(JavaCompile).configureEach {
41-
it.options.release = 21
40+
it.options.release = 25
4241
}
4342

4443
java {
@@ -47,8 +46,8 @@ java {
4746
// If you remove this line, sources will not be generated.
4847
withSourcesJar()
4948

50-
sourceCompatibility = JavaVersion.VERSION_21
51-
targetCompatibility = JavaVersion.VERSION_21
49+
sourceCompatibility = JavaVersion.VERSION_25
50+
targetCompatibility = JavaVersion.VERSION_25
5251
}
5352

5453
jar {
@@ -75,4 +74,4 @@ publishing {
7574
// The repositories here will be used for publishing your artifact, not for
7675
// retrieving dependencies.
7776
}
78-
}
77+
}

gradle.properties

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.21.11
8-
yarn_mappings=1.21.11+build.3
7+
minecraft_version=26.1-snapshot-3
98
loader_version=0.18.4
109
loom_version=1.14-SNAPSHOT
1110

1211
# Mod Properties
13-
mod_version=1.0.4+1.21.11
12+
mod_version=1.0.5-beta+26.1-snapshots
1413
maven_group=me.imgalvin.playerfinder
1514
archives_base_name=player-finder
1615

1716
# Dependencies
18-
fabric_version=0.140.2+1.21.11
17+
fabric_api_version=0.142.0+26.1

0 commit comments

Comments
 (0)