Update to 1.20.4

This commit is contained in:
Li2424
2024-04-20 23:28:16 +02:00
parent 366bc058a5
commit dcfbdf2379
3 changed files with 16 additions and 13 deletions

View File

@@ -1,12 +1,8 @@
plugins { plugins {
id 'fabric-loom' version '0.12.+' id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version version = project.mod_version
group = project.maven_group group = project.maven_group
@@ -14,6 +10,10 @@ repositories {
maven { url "https://api.modrinth.com/maven" } maven { url "https://api.modrinth.com/maven" }
} }
base {
archivesName = project.archives_base_name
}
dependencies { dependencies {
//to change the versions see the gradle.properties file //to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
@@ -46,6 +46,9 @@ tasks.withType(JavaCompile).configureEach {
// if it is present. // if it is present.
// If you remove this task, sources will not be generated. // If you remove this task, sources will not be generated.
java { java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar() withSourcesJar()
} }
@@ -56,7 +59,7 @@ jar {
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { create("mavenJava", MavenPublication) {
from components.java from components.java
} }
} }

View File

@@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop/ # check these on https://fabricmc.net/develop/
minecraft_version=1.19.4 minecraft_version=1.20.4
yarn_mappings=1.19.4+build.2 yarn_mappings=1.20.4+build.3
loader_version=0.14.19 loader_version=0.15.10
# Mod Properties # Mod Properties
mod_version = 1.3.0 mod_version = 1.3.1
maven_group = eu.midnightdust maven_group = eu.midnightdust
archives_base_name = timechanger archives_base_name = timechanger
# Dependencies # Dependencies
fabric_version=0.81.1+1.19.4 fabric_version=0.97.0+1.20.4
midnightlib_version=1.3.0-fabric midnightlib_version=1.5.3-fabric

View File

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