-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0aa0a4
commit 789617a
Showing
161 changed files
with
6,414 additions
and
1,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,105 @@ | ||
buildscript { | ||
ext { | ||
modMenuVersion = '1.14.13+build.19' | ||
clothConfigVersion = '4.8.3' | ||
autoConfig1uVersion = '3.3.1' | ||
bannerPPVersion = '2.0.2+mc.1.16.3' | ||
modMenuVersion = '3.1.0' | ||
clothConfigVersion = '6.2.57' | ||
} | ||
} | ||
|
||
plugins { | ||
id 'fabric-loom' version '0.5-SNAPSHOT' | ||
id 'maven-publish' | ||
id 'fabric-loom' version '0.11-SNAPSHOT' | ||
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 | ||
|
||
repositories { | ||
jcenter() | ||
|
||
maven { | ||
url 'https://server.bbkr.space/artifactory/libs-release/' | ||
} | ||
maven { | ||
name = "patchouli" | ||
url = "https://maven.blamejared.com" | ||
} | ||
maven { | ||
name = "Cotton" | ||
url = "https://server.bbkr.space/artifactory/libs-release/" | ||
} | ||
maven { url "https://maven.shedaniel.me/" } | ||
maven { | ||
name = "TerraformersMC" | ||
url = "https://maven.terraformersmc.com/" | ||
} | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
|
||
// Fabric API. This is technically optional, but you probably want it anyway. | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
// Fabric API. This is technically optional, but you probably want it anyway. | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. | ||
// You may need to force-disable transitiveness on them. | ||
|
||
modImplementation "io.github.prospector:modmenu:${modMenuVersion}" | ||
modImplementation "io.github.fablabsmc:bannerpp:${bannerPPVersion}" | ||
|
||
modApi("me.shedaniel.cloth:config-2:${clothConfigVersion}") { | ||
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:8.0.442" | ||
modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:8.0.442" | ||
modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") { | ||
exclude(group: "net.fabricmc.fabric-api") | ||
} | ||
include "me.shedaniel.cloth:config-2:${clothConfigVersion}" | ||
|
||
modApi("me.sargunvohra.mcmods:autoconfig1u:${autoConfig1uVersion}") { | ||
modApi("me.shedaniel.cloth:cloth-config-fabric:5.3.52") { | ||
exclude(group: "net.fabricmc.fabric-api") | ||
} | ||
include "me.sargunvohra.mcmods:autoconfig1u:${autoConfig1uVersion}" | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
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" | ||
|
||
// 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 | ||
} | ||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17. | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task | ||
// if it is present. | ||
// If you remove this line, sources will not be generated. | ||
withSourcesJar() | ||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task | ||
// if it is present. | ||
// If you remove this line, sources will not be generated. | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archivesBaseName}"} | ||
} | ||
from("LICENSE") { | ||
rename { "${it}_${project.archivesBaseName}" } | ||
} | ||
} | ||
|
||
// configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
// add all the jars that should be included when publishing to maven | ||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
// Select the repositories you want to publish to | ||
// To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`. | ||
repositories { | ||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
} | ||
publications { | ||
mavenJava(MavenPublication) { | ||
// add all the jars that should be included when publishing to maven | ||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
// Select the repositories you want to publish to | ||
// To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`. | ||
repositories { | ||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx4G | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/use | ||
minecraft_version=1.16.5 | ||
yarn_mappings=1.16.5+build.1 | ||
loader_version=0.11.0 | ||
|
||
# check these on https://fabricmc.net/use | ||
minecraft_version=1.18.2 | ||
yarn_mappings=1.18.2+build.2 | ||
loader_version=0.13.3 | ||
# Mod Properties | ||
mod_version = 1.4.0 | ||
maven_group = paperdomo101 | ||
archives_base_name = lightstones | ||
|
||
mod_version=1.5.0 | ||
maven_group=paperdomo101 | ||
archives_base_name=lightstones | ||
# Dependencies | ||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api | ||
fabric_version=0.29.3+1.16 | ||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api | ||
fabric_version=0.48.0+1.18.2 | ||
modmenu_version=3.1.0 | ||
cloth_config_version=6.2.57 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-6.8-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.