diff options
author | Merrg1n <[email protected]> | 2022-08-13 18:26:11 +0800 |
---|---|---|
committer | Merrg1n <[email protected]> | 2022-08-14 01:42:34 +0800 |
commit | 054bf10c34e3209372c03b6330c0f60e0b5339ff (patch) | |
tree | e552508e9bc1c1293bac063804941a6916871123 | |
parent | 1678ef3eb724e97e7815f1411c5c55c6fd1138b6 (diff) |
Update build system
-rw-r--r-- | build.gradle | 20 | ||||
-rw-r--r-- | gradle.properties | 15 | ||||
-rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 2 |
3 files changed, 25 insertions, 12 deletions
diff --git a/build.gradle b/build.gradle index 1cadcf9..bfb17ed 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.5-SNAPSHOT' + id 'fabric-loom' version '0.7-SNAPSHOT' id 'maven-publish' } @@ -10,6 +10,14 @@ archivesBaseName = project.archives_base_name version = project.mod_version + "-mc" + project.minecraft_version group = project.maven_group +repositories { + // Add repositories to retrieve artifacts from in here. + // You should only use this when depending on other mods because + // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. + // See https://docs.gradle.org/current/userguide/declaring_repositories.html + // for more information about repositories. +} + dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" @@ -43,7 +51,7 @@ tasks.withType(JavaCompile).configureEach { // We'll use that if it's available, but otherwise we'll use the older option. def targetVersion = 8 if (JavaVersion.current().isJava9Compatible()) { - it.options.release = targetVersion + it.options.release = targetVersion } } @@ -74,9 +82,11 @@ publishing { } } - // Select the repositories you want to publish to - // To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`. + // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. repositories { - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. + // Add repositories to publish to here. + // Notice: This block does NOT have the same function as the block in the top level. + // The repositories here will be used for publishing your artifact, not for + // retrieving dependencies. } } diff --git a/gradle.properties b/gradle.properties index a0996f9..3ad27cc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,14 +1,17 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G + # Fabric Properties -# check these on https://fabricmc.net/use -minecraft_version=1.16.4 -yarn_mappings=1.16.4+build.9 -loader_version=0.11.0 +# check these on https://fabricmc.net/versions.html +minecraft_version=1.16.5 +yarn_mappings=1.16.5+build.9 +loader_version=0.11.3 + # Mod Properties mod_version=1.7.0-pre1 maven_group=com.keuin.omvm archives_base_name=oh-my-vanilla-mc + # Dependencies -# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api -fabric_version=0.29.3+1.16
\ No newline at end of file +# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api (or https://fabricmc.net/versions.html) +fabric_version=0.34.2+1.16
\ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index be52383..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.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists |