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

View File

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

View File

@ -8,7 +8,3 @@ dependencies {
@Suppress("GradlePackageUpdate", "RedundantSuppression") @Suppress("GradlePackageUpdate", "RedundantSuppression")
implementation("io.netty:netty-all:4.0.56.Final") 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") @Suppress("GradlePackageUpdate", "RedundantSuppression")
implementation("io.netty:netty-all:4.0.56.Final") 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")
}