BUMP Minecraft version to 1.19.2
BUMP Fabric API to v2
This commit is contained in:
parent
30b5888657
commit
a31b01aa03
13 changed files with 52 additions and 53 deletions
15
build.gradle
15
build.gradle
|
@ -1,9 +1,9 @@
|
|||
plugins {
|
||||
id 'fabric-loom' version '0.10-SNAPSHOT'
|
||||
id 'fabric-loom' version '1.0-SNAPSHOT'
|
||||
}
|
||||
|
||||
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
|
||||
|
@ -55,10 +55,11 @@ tasks.withType(JavaCompile).configureEach {
|
|||
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
|
||||
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
|
||||
// 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
|
||||
}
|
||||
//def targetVersion = 8
|
||||
//if (JavaVersion.current().isJava9Compatible()) {
|
||||
// it.options.release = targetVersion
|
||||
//}
|
||||
it.options.release = 17
|
||||
}
|
||||
|
||||
java {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue