Skip to content

Commit 27998a8

Browse files
committed
add legacy fabric maven by default for lwjgl
1 parent d147988 commit 27998a8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/main/java/net/ornithemc/ploceus/Constants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class Constants {
1515
public static final String QUILT_MAVEN_NAME = "Quilt";
1616
public static final String QUILT_MAVEN_URL = "https://maven.quiltmc.org/repository/release";
1717

18+
public static final String LEGACY_FABRIC_MAVEN_NAME = "Legacy Fabric";
19+
public static final String LEGACY_FABRIC_MAVEN_URL = "https://maven.legacyfabric.net";
20+
1821
public static final String FORGE_MAVEN_NAME = "Forge";
1922
public static final String FORGE_MAVEN_URL = "https://maven.minecraftforge.net/";
2023

src/main/java/net/ornithemc/ploceus/PloceusRepositoryPlugin.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ private void declareRepositories(RepositoryHandler repositories) {
3737
repo.setName(Constants.QUILT_MAVEN_NAME);
3838
repo.setUrl(Constants.QUILT_MAVEN_URL);
3939
});
40+
repositories.maven(repo -> {
41+
repo.setName(Constants.LEGACY_FABRIC_MAVEN_NAME);
42+
repo.setUrl(Constants.LEGACY_FABRIC_MAVEN_URL);
43+
repo.content(content -> {
44+
content.includeGroup("org.lwjgl.lwjgl");
45+
});
46+
});
4047
repositories.maven(repo -> {
4148
repo.setName(Constants.FORGE_MAVEN_NAME);
4249
repo.setUrl(Constants.FORGE_MAVEN_URL);

0 commit comments

Comments
 (0)