update gradle + loom

This commit is contained in:
creeper123123321 2021-05-02 13:17:19 -03:00
parent 4fb5e9cfac
commit cae79c2b68
4 changed files with 6 additions and 12 deletions

View File

@ -2,7 +2,7 @@
plugins {
id "java"
id "maven-publish"
id "fabric-loom" version "0.5.43" apply false
id "fabric-loom" version "0.7-SNAPSHOT" apply false
id "org.ajoberstar.grgit" version "3.1.1"
id "com.matthewprenger.cursegradle" version "1.4.0"
}
@ -190,10 +190,6 @@ task javadocJar(type: Jar) {
build.dependsOn javadocJar
subprojects {
dependencies {
testmodCompile sourceSets.main.output
}
task remapMavenJar(type: Copy, dependsOn: remapJar) {
afterEvaluate {
from("${project.buildDir}/libs/$archivesBaseName-${version}.jar")
@ -283,17 +279,15 @@ sourceSets {
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("net.fabricmc:yarn:1.8.9+build.202103291533:v2")
modCompile("net.fabricmc:fabric-loader:0.10.5+build.213")
modImplementation("net.fabricmc:fabric-loader:0.10.5+build.213")
include("com.viaversion:viaversion:4.0.0-21w17a")
include("org.yaml:snakeyaml:1.28")
afterEvaluate {
subprojects.each {
implementation project(path: ":${it.name}", configuration: "dev")
//implementation project(path: ":${it.name}", configuration: "dev")
include project("${it.name}:")
testmodCompile project("${it.name}:").sourceSets.testmod.output
}
}
}

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -3,7 +3,7 @@ version = rootProject.version
dependencies {
minecraft("com.mojang:minecraft:21w15a")
mappings("net.fabricmc:yarn:21w15a+build.16:v2")
modCompile("net.fabricmc:fabric-loader:0.10.5+build.213")
modImplementation("net.fabricmc:fabric-loader:0.10.5+build.213")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.33.0+1.17")
modImplementation("com.terraformersmc:modmenu:1.16.9")

View File

@ -3,7 +3,7 @@ version = rootProject.version
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("net.fabricmc:yarn:1.8.9+build.202103291533:v2")
modCompile("net.fabricmc:fabric-loader:0.10.5+build.213")
modImplementation("net.fabricmc:fabric-loader:0.10.5+build.213")
modImplementation("net.legacyfabric.legacy-fabric-api:legacy-fabric-api:1.1.0+1.8.9")
modImplementation("io.github.boogiemonster1o1:modmenu:0.1.0+1.8.9")