Update to 1.19

This commit is contained in:
Emma Cypress Pointer-Null
2022-06-17 17:35:39 -04:00
parent 56e5e5feab
commit 527c625871
6 changed files with 23 additions and 32 deletions

View File

@@ -1,18 +1,15 @@
plugins {
id 'fabric-loom' version '0.9.+'
id 'fabric-loom' version '0.12.+'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
minecraft {
}
repositories {
maven { url "https://maven.terraformersmc.com" }
maven { url "https://maven.shedaniel.me" }
@@ -45,8 +42,9 @@ processResources {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release.set(17)
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
@@ -64,13 +62,7 @@ jar {
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
from components.java
}
}