Skip to content

Commit

Permalink
1.18 compatibility (v1.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdev2 committed Dec 2, 2021
1 parent c93e9b7 commit 6392a43
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
12 changes: 5 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand All @@ -29,7 +29,7 @@ tasks.withType(JavaCompile).configureEach {

def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
it.options.release.set(targetVersion)
}
}

Expand Down Expand Up @@ -70,9 +70,7 @@ publishing {
}
}

artifact(remapJar) {
builtBy remapJar
}
from components.java
}
}

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
org.gradle.jvmargs=-Xmx1G

minecraft_version=1.17
yarn_mappings=1.17+build.6
loader_version=0.11.3
minecraft_version=1.18
yarn_mappings=1.18+build.1
loader_version=0.12.8

mod_version=1.3
mod_version=1.4
maven_group=com.rdvdev2
archives_base_name=DisableCustomWorldsAdvice

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pluginManagement {
repositories {
jcenter()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
gradlePluginPortal()
mavenCentral()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ public abstract class MixinMinecraftClient {
private boolean replaceBl2(boolean bl2) {
return false;
}

}
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"fabricloader": "*",
"minecraft": [
"~1.16.2",
"~1.17"
"~1.17",
"~1.18"
]
}
}

0 comments on commit 6392a43

Please sign in to comment.