From 72476f8605c9d536c4c564253a4c962f126f9ad3 Mon Sep 17 00:00:00 2001 From: MightyKnight <38622942+MightyKnight@users.noreply.github.com> Date: Tue, 8 Jun 2021 01:28:47 +0200 Subject: [PATCH] Update gradle and loom --- build.gradle | 33 ++---------------------- gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/build.gradle b/build.gradle index 0b480cf..d1da6a1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,5 @@ plugins { - id 'fabric-loom' version '0.5-SNAPSHOT' - id 'maven-publish' + id 'fabric-loom' version '0.6-SNAPSHOT' } sourceCompatibility = JavaVersion.VERSION_1_8 @@ -19,21 +18,14 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. - // You may need to force-disable transitiveness on them. } processResources { inputs.property "version", project.version - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching("fabric.mod.json") { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is @@ -54,24 +46,3 @@ task sourcesJar(type: Jar, dependsOn: classes) { jar { from "LICENSE" } - -// configure the maven publication -publishing { - publications { - mavenJava(MavenPublication) { - // add all the jars that should be included when publishing to maven - artifact(remapJar) { - builtBy remapJar - } - artifact(sourcesJar) { - builtBy remapSourcesJar - } - } - } - - // select the repositories you want to publish to - repositories { - // uncomment to publish to the local maven - // mavenLocal() - } -} diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index bb8b2fc..0f80bbf 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists