Skip to content

Commit 3fd469e

Browse files
committed
Fix dependencies.
1 parent d3fd7d0 commit 3fd469e

4 files changed

Lines changed: 42 additions & 41 deletions

File tree

.gemini/styleguide.md

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

.github/workflows/publish.yml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,33 @@ jobs:
5151
artifacts: "build/libs/*"
5252
generateReleaseNotes: true
5353

54-
# - name: Publish to CurseForge and Modrinth
55-
# uses: Kir-Antipov/mc-publish@v3.3
56-
# with:
57-
# # Only include this section if you wish to publish
58-
# # your assets on Modrinth.
59-
# modrinth-id: placeholder
60-
# modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
61-
#
62-
# # Only include this section if you wish to publish
63-
# # your assets on CurseForge.
64-
# curseforge-id: placeholder
65-
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
66-
#
67-
# files: |
68-
# build/libs/!(*-@(dev|sources|javadoc)).jar
69-
# build/libs/*-@(dev|sources|javadoc).jar
70-
# loaders: forge
71-
# game-versions: 1.12.2
72-
# java: |
73-
# 21
74-
# 22
75-
# version: ${{ steps.version.outputs.version }}
76-
# changelog: ${{ steps.changes.outputs.changes }}
77-
# retry-attempts: 2
54+
- name: Publish to CurseForge and Modrinth
55+
uses: Kir-Antipov/mc-publish@v3.3
56+
with:
57+
# Only include this section if you wish to publish
58+
# your assets on Modrinth.
59+
modrinth-id: placeholder
60+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
61+
modrinth-dependencies: |
62+
G1ckZuWK(required)
63+
Jrmoreqs(required)
64+
65+
# Only include this section if you wish to publish
66+
# your assets on CurseForge.
67+
curseforge-id: placeholder
68+
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
69+
curseforge-dependencies: |
70+
mixin-booter(required)
71+
advanced-backups(required)
72+
73+
files: |
74+
build/libs/!(*-@(dev|sources|javadoc)).jar
75+
build/libs/*-@(dev|sources|javadoc).jar
76+
loaders: forge
77+
game-versions: 1.12.2
78+
java: |
79+
21
80+
22
81+
version: ${{ steps.version.outputs.version }}
82+
changelog: ${{ steps.changes.outputs.changes }}
83+
retry-attempts: 2

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.0.3
2+
- Fix dependencies.
3+
4+
* * *
5+
16
# 1.0.2
27
- Also supports CRL versions.
38

src/main/java/com/github/gtexpert/advancedbackupspatch/AdvancedBackupsPatch.java

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
import java.util.List;
55

66
import net.minecraftforge.fml.common.Mod;
7-
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
8-
9-
import org.apache.logging.log4j.LogManager;
10-
import org.apache.logging.log4j.Logger;
117

128
import zone.rong.mixinbooter.ILateMixinLoader;
139

14-
@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
10+
@Mod(modid = Reference.MOD_ID,
11+
name = Reference.MOD_NAME,
12+
acceptedMinecraftVersions = "[1.12.2]",
13+
version = Reference.VERSION,
14+
// updateJSON = "https://forge.curseupdate.com/851103/gtexpert",
15+
dependencies = "required-after:mixinbooter" + "@[10.6,);" +
16+
"after:advancedbackups;")
1517
public class AdvancedBackupsPatch implements ILateMixinLoader {
1618

17-
public static final Logger LOGGER = LogManager.getLogger(Reference.MOD_NAME);
18-
1919
@Override
2020
public List<String> getMixinConfigs() {
2121
return Collections.singletonList("mixins.advancedbackupspatch.json");
2222
}
23-
24-
@Mod.EventHandler
25-
public void preInit(FMLPreInitializationEvent event) {
26-
LOGGER.info("Hello From {}!", Reference.MOD_NAME);
27-
}
2823
}

0 commit comments

Comments
 (0)