Skip to content

Commit

Permalink
Update to latest Fabric Example Mod buildscript, re-write gradle.prop…
Browse files Browse the repository at this point in the history
…erties
  • Loading branch information
Draylar committed Dec 21, 2021
1 parent 27832f0 commit 29deae4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
18 changes: 3 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies {

// Config solutions + Cloth Config for Magna
modImplementation "com.github.Draylar.omega-config:omega-config-base:${project.omega_config_version}"
include "com.github.Draylar.omega-config:omega-config-base:${project.omega_config_version}:min"
include "com.github.Draylar.omega-config:omega-config-base:${project.omega_config_version}"
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
Expand All @@ -74,13 +74,7 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
// 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
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"

// Minecraft 1.17 (21w19a) upwards uses Java 16.
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
}

Expand All @@ -101,13 +95,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
}
}

Expand Down
22 changes: 10 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
# Minecraft Properties
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.7
loader_version=0.12.12
fabric_version=0.44.0+1.18

# Mod Settings
version=3.1.2
# Metadata
modid=vanilla-hammers
version=3.2.0

# Dependencies
fabric_version=0.44.0+1.18

cloth_config_version=5.0.34
mod_menu_version=2.0.2
static_content_version=1.0.1
# External Dependencies
magna_version=1.7.0-1.18
omega_config_version=1.0.4-beta
mod_menu_version=3.0.1
libcd_version=3.0.3+1.16.3
maybe_data_version=1.17-SNAPSHOT
static_content_version=1.0.2
maybe_data_version=1.17-SNAPSHOT
omega_config_version=1.2.1-1.18.1
cloth_config_version=5.0.38

0 comments on commit 29deae4

Please sign in to comment.