custom loom

This commit is contained in:
creeper123123321 2021-09-18 17:53:00 -03:00
parent d13b86fa03
commit c1ca789ee5
3 changed files with 15 additions and 20 deletions

View File

@ -1,11 +1,20 @@
// todo migrate this code to kotlin
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
maven { url = "https://jitpack.io" }
}
dependencies {
classpath "com.github.creeper123123321:fabric-loom:18workaround-SNAPSHOT"
}
}
// Stolen https://github.com/FabricMC/fabric/blob/1.17/build.gradle
plugins {
id "java"
id "maven-publish"
id "fabric-loom" version "0.8-SNAPSHOT" apply false
id "org.ajoberstar.grgit" version "3.1.1"
id "com.matthewprenger.cursegradle" version "1.4.0"
}
@ -101,13 +110,6 @@ allprojects {
archiveClassifier = "sources"
from sourceSets.main.allSource
}
minecraft {
intermediaryUrl = {
if (it == "1.8.9") "https://maven.legacyfabric.net/net/fabricmc/intermediary/$it/intermediary-$it-v2.jar"
else "https://maven.fabricmc.net/net/fabricmc/intermediary/$it/intermediary-$it-v2.jar"
}
}
}
subprojects {
@ -217,7 +219,7 @@ curseforge {
changelog = "A changelog can be found at https://github.com/ViaVersion/ViaFabric/commits"
releaseType = "alpha"
Arrays.<String> asList("1.17.1", "1.16.5", "1.15.2", "1.14.4", "1.8.9",
"Java 8", "Java 9", "Java 10", "Java 11", "Java 12", "Java 13", "Java 14", "Java 15", "Java 16", "Java 17", "Fabric")
"Java 8", "Java 9", "Java 10", "Java 11", "Java 12", "Java 13", "Java 14", "Java 15", "Java 16", "Java 17", "Fabric")
.forEach { ver -> addGameVersion(ver) }
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) {

View File

@ -1,9 +1,6 @@
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven { url = 'https://maven.fabricmc.net/' }
gradlePluginPortal()
}
}

View File

@ -1,13 +1,9 @@
version = rootProject.version
loom {
customManifest = "https://gist.githubusercontent.com/modmuss50/6e00baf80dcbaa42f3a2fc846b290128/raw/f035ef8f75164f56ec6352809a34841d326bae1c/1_18_experimental-snapshot-1.json"
}
dependencies {
minecraft("com.mojang:minecraft:1.18_experimental-snapshot-1")
mappings("net.fabricmc:yarn:1.18_experimental-snapshot-1+build.9:v2")
minecraft("com.mojang:minecraft:1.18_experimental-snapshot-7")
mappings("net.fabricmc:yarn:1.18_experimental-snapshot-7+build.4:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.37.2+1.18_experimental")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.40.1+1.18_experimental")
modImplementation("com.terraformersmc:modmenu:2.0.2")
}