1.19 Update (#45)

This commit is contained in:
byquanton
2022-06-11 21:40:09 +02:00
committed by GitHub
parent a199313682
commit 747188d023
7 changed files with 115 additions and 127 deletions

View File

@@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version '0.11-SNAPSHOT' id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
@@ -31,10 +31,11 @@ repositories {
} }
dependencies { dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${yarn_mappings}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${loader_version}" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "io.github.ladysnake:satin:${satin_version}" modImplementation "io.github.ladysnake:satin:${satin_version}"
include "io.github.ladysnake:satin:${satin_version}" include "io.github.ladysnake:satin:${satin_version}"
@@ -51,11 +52,9 @@ processResources {
} }
} }
// ensure that the encoding is set to UTF-8, no matter what the system default is tasks.withType(JavaCompile).configureEach {
// this fixes some edge cases with special characters not displaying correctly // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html it.options.release = 17
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
} }
java { java {
@@ -70,20 +69,7 @@ jar {
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven from components.java
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()
}
} }

View File

@@ -2,18 +2,18 @@
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/develop
minecraft_version=1.18.2 minecraft_version=1.19
yarn_mappings=1.18.2+build.1 yarn_mappings=1.19+build.1
loader_version=0.13.3 loader_version=0.14.6
# Mod Properties # Mod Properties
mod_version = 2.4.2 mod_version = 2.5.0
maven_group = com.tterrag.blur maven_group = com.tterrag.blur
archives_base_name = blur archives_base_name = blur
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.47.9+1.18.2 fabric_version=0.55.1+1.19
satin_version = 1.7.2 satin_version = 1.8.0
midnightlib_version=0.4.0 midnightlib_version=0.5.2

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.3.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

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

View File

@@ -8,18 +8,20 @@
"icon": "assets/blur/icon.png", "icon": "assets/blur/icon.png",
"entrypoints": { "entrypoints": {
"client": [ "client": [
"com.tterrag.blur.Blur::INSTANCE" "com.tterrag.blur.Blur"
] ]
}, },
"contact": { "contact": {
"homepage": "https://www.curseforge.com/minecraft/mc-mods/blur-fabric", "homepage": "https://www.curseforge.com/minecraft/mc-mods/blur-fabric",
"sources": "https://github.com/Motschen/Blur",
"issues": "https://github.com/Motschen/Blur/issues" "issues": "https://github.com/Motschen/Blur/issues"
}, },
"authors": [ "authors": [
"tterrag1098", "tterrag1098",
"Pyrofab", "Pyrofab",
"Motschen", "Motschen",
"backryun" "backryun",
"byquanton"
], ],
"description": "Modifies the background behind Minecraft GUIs to have a blur effect", "description": "Modifies the background behind Minecraft GUIs to have a blur effect",
"mixins": [ "mixins": [

View File

@@ -1,7 +1,8 @@
{ {
"required": true, "required": true,
"minVersion": "0.8",
"package": "com.tterrag.blur.mixin", "package": "com.tterrag.blur.mixin",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_17",
"client": [ "client": [
"MixinScreen", "MixinScreen",
"MixinMinecraftClient" "MixinMinecraftClient"