Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit c4b1d2e

Browse files
committed
使用cursemaven
1 parent 32db0ca commit c4b1d2e

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed

.github/workflows/build.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on: [ pull_request, push, workflow_dispatch ]
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up JDK 21
13+
uses: actions/setup-java@v4
14+
with:
15+
distribution: 'temurin'
16+
java-version: 21
17+
- name: Cache
18+
uses: actions/cache@v4
19+
with:
20+
path: |
21+
~/.gradle/caches
22+
~/.gradle/wrapper
23+
.gradle
24+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
25+
- name: Build with Gradle
26+
run: |
27+
chmod +x gradlew
28+
./gradlew build
29+
30+
- name: Upload artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: artifacts
34+
path: ${{ github.workspace }}/build/libs

build.gradle

+7-6
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ loom {
1414
}
1515

1616
repositories {
17-
// Add repositories to retrieve artifacts from in here.
18-
// You should only use this when depending on other mods because
19-
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
20-
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
21-
// for more information about repositories.
17+
maven {
18+
url "https://cursemaven.com"
19+
content {
20+
includeGroup "curse.maven"
21+
}
22+
}
2223
}
2324

2425
dependencies {
2526
minecraft "net.minecraft:minecraft:$project.minecraft_version"
2627
mappings "net.fabricmc:yarn:$project.yarn_mappings:v2"
2728
forge "net.minecraftforge:forge:$project.forge_version"
2829

29-
modImplementation(fileTree(dir: 'libs', include: '*.jar'))
30+
modImplementation("curse.maven:checklist-405211:$project.checklist_id")
3031
}
3132

3233
processResources {

gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ archives_name = ChecklistLocalizer
1010
# Minecraft properties
1111
minecraft_version = 1.20.1
1212
yarn_mappings = 1.20.1+build.10
13+
forge_version = 1.20.1-47.3.22
1314

1415
# Dependencies
15-
forge_version = 1.20.1-47.3.22
16+
checklist_id=5075898

libs/Checklist-Forge-1.20.1-1.3.0.jar

-63.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)