use legacy looming, include fastutil in jar

This commit is contained in:
creeper123123321 2024-07-07 15:03:14 -03:00
parent 4a6905dc44
commit a5d5adb18f
4 changed files with 4 additions and 8 deletions

View File

@ -13,6 +13,7 @@ plugins {
id "com.matthewprenger.cursegradle" version "1.4.0" // This repository is archived on GH
id "com.modrinth.minotaur" version "2.8.7"
id "fabric-loom" version "1.6-SNAPSHOT" apply false
id "legacy-looming" version "1.6-SNAPSHOT" apply false // Version = fabric-loom
id "com.github.ben-manes.versions" version "0.51.0"
id "xyz.wagyourtail.jvmdowngrader" version "0.7.1"
}
@ -40,6 +41,7 @@ def getBranch() {
allprojects {
apply plugin: "maven-publish"
apply plugin: "fabric-loom"
apply plugin: "legacy-looming"
java {
toolchain {
@ -143,6 +145,7 @@ dependencies {
includeJ8("com.viaversion:viaversion:${rootProject.viaver_version}")
include("org.yaml:snakeyaml:${rootProject.yaml_version}")
implementation("it.unimi.dsi:fastutil:8.5.13")
}
remapJar {

View File

@ -3,6 +3,7 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven ("https://maven.fabricmc.net/")
maven ("https://repo.legacyfabric.net/repository/legacyfabric/")
}
}

View File

@ -8,7 +8,3 @@ dependencies {
@Suppress("GradlePackageUpdate", "RedundantSuppression")
implementation("io.netty:netty-all:4.0.56.Final")
}
loom {
intermediaryUrl.set("https://maven.legacyfabric.net/net/legacyfabric/intermediary/%1\$s/intermediary-%1\$s-v2.jar")
}

View File

@ -11,7 +11,3 @@ dependencies {
@Suppress("GradlePackageUpdate", "RedundantSuppression")
implementation("io.netty:netty-all:4.0.56.Final")
}
loom {
intermediaryUrl.set("https://maven.legacyfabric.net/net/legacyfabric/intermediary/%1\$s/intermediary-%1\$s-v2.jar")
}