Skip to content

Commit 0e21186

Browse files
committed
Update to Multiloader
- Updated `build.gradle`, `gradle.properties`, `gradlew` script, `gradlew.bat` and `settings.gradle` files to allow for multiloader implementation TODO: - Need to clean up old scripts and file structures
1 parent 191462b commit 0e21186

1,609 files changed

Lines changed: 1363 additions & 939 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.gradle

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
1+
plugins {
2+
id "architectury-plugin" version "3.4-SNAPSHOT"
3+
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
4+
id "me.modmuss50.mod-publish-plugin" version "0.3.4" apply false
5+
}
6+
7+
architectury {
8+
minecraft = rootProject.minecraft_version
9+
}
10+
11+
subprojects {
12+
apply plugin: "dev.architectury.loom"
13+
apply plugin: "me.modmuss50.mod-publish-plugin"
14+
15+
base.archivesName = "${rootProject.archives_base_name}-${project.name}"
16+
17+
dependencies {
18+
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
19+
// The following line declares the mojmap mappings, you may use other mappings as well
20+
// mappings loom.officialMojangMappings()
21+
// The following line declares the yarn mappings you may select this one as well.
22+
if (project.name != "neoforge") {
23+
mappings "net.fabricmc:yarn:${rootProject.minecraft_version}+build.${rootProject.yarn_mappings}:v2"
24+
}
25+
}
26+
27+
//if (project.name != "common") {
28+
// publishMods {
29+
// file = remapJar.archiveFile
30+
// changelog = file('../CHANGELOG.md').text
31+
// type = project.mod_version.contains("alpha") ? ALPHA :
32+
// project.mod_version.contains("beta") ? BETA : STABLE
33+
34+
// modrinth {
35+
// accessToken = providers.environmentVariable("MODRINTH_API_KEY")
36+
// projectId = "xweQBqAC"
37+
// minecraftVersions.add(rootProject.minecraft_version)
38+
// }
39+
40+
// curseforge {
41+
// accessToken = providers.environmentVariable("CURSEFORGE_API_KEY")
42+
// projectId = "476788"
43+
// minecraftVersions.add(rootProject.minecraft_version)
44+
// }
45+
// }
46+
//}
47+
}
48+
49+
allprojects {
50+
apply plugin: "java"
51+
apply plugin: "architectury-plugin"
52+
apply plugin: "maven-publish"
53+
54+
version = "${rootProject.mod_version}+mc${rootProject.minecraft_version}"
55+
group = rootProject.maven_group
56+
57+
repositories {
58+
maven {
59+
name = "TerraformersMC"
60+
url = "https://maven.terraformersmc.com/"
61+
}
62+
maven {
63+
name = "QuiltMC"
64+
url = "https://maven.quiltmc.org/repository/release/"
65+
}
66+
maven {
67+
name = "Modrinth"
68+
url = "https://api.modrinth.com/maven"
69+
content {
70+
includeGroup "maven.modrinth"
71+
}
72+
}
73+
maven {
74+
name = "FzzyMaven"
75+
url = "https://maven.fzzyhmstrs.me/"
76+
}
77+
}
78+
79+
tasks.withType(JavaCompile).configureEach {
80+
options.encoding = "UTF-8"
81+
options.release = 21
82+
}
83+
84+
java {
85+
withSourcesJar()
86+
}
87+
}
88+
89+
90+
91+
/*
192
plugins {
293
id 'fabric-loom' version '1.6-SNAPSHOT'
394
id 'maven-publish'
@@ -124,4 +215,5 @@ publishing {
124215
125216
fabricApi {
126217
configureDataGeneration()
127-
}
218+
}
219+
*/

common/build.gradle

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Timefall Development License 1.2
3+
* Copyright (c) 2025. Chronosacaria, Kluzzio, Timefall Development. All Rights Reserved.
4+
*
5+
* This software's content is licensed under the Timefall Development License 1.2. You can find this license information here: https://github.com/Timefall-Development/Timefall-Development-Licence/blob/main/TimefallDevelopmentLicense1.2.txt
6+
*/
7+
8+
plugins {
9+
id "com.github.johnrengelman.shadow" version "7.1.2"
10+
}
11+
12+
architectury {
13+
platformSetupLoomIde()
14+
fabric()
15+
}
16+
17+
configurations {
18+
common
19+
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
20+
compileClasspath.extendsFrom common
21+
runtimeClasspath.extendsFrom common
22+
developmentFabric.extendsFrom common
23+
}
24+
25+
dependencies {
26+
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
27+
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
28+
29+
//modImplementation "dev.emi:emi-fabric:${rootProject.emi_version}+${rootProject.minecraft_version}"
30+
31+
common(project(path: ":common", configuration: "namedElements")) { transitive false }
32+
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
33+
modImplementation "me.fzzyhmstrs:fzzy_config:${rootProject.fzzyConfigVersion}"
34+
//modImplementation "net.fabricmc:fabric-language-kotlin:1.12.1+kotlin.2.0.20"
35+
//modImplementation "net.peanuuutz.tomlkt:tomlkt:0.3.7"
36+
}
37+
38+
publishMods {
39+
displayName = "[Fabric/Quilt ${rootProject.minecraft_version}] ${rootProject.mod_version}"
40+
version = "fabric-${project.version}"
41+
modLoaders.add("fabric")
42+
modLoaders.add("quilt")
43+
}
44+
45+
processResources {
46+
inputs.property "version", project.version
47+
48+
filesMatching("fabric.mod.json") {
49+
expand "version": project.version
50+
}
51+
}
52+
53+
shadowJar {
54+
exclude "architectury.common.json"
55+
56+
configurations = [project.configurations.shadowCommon]
57+
archiveClassifier = "dev-shadow"
58+
}
59+
60+
remapJar {
61+
injectAccessWidener = true
62+
input.set shadowJar.archiveFile
63+
dependsOn shadowJar
64+
archiveClassifier = null
65+
}
66+
67+
jar {
68+
archiveClassifier = "dev"
69+
}
70+
71+
sourcesJar {
72+
def commonSources = project(":common").sourcesJar
73+
dependsOn commonSources
74+
from commonSources.archiveFile.map { zipTree(it) }
75+
}
76+
77+
components.java {
78+
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
79+
skip()
80+
}
81+
}
82+
83+
publishing {
84+
publications {
85+
mavenFabric(MavenPublication) {
86+
artifactId = rootProject.archives_base_name + "-" + project.name
87+
from components.java
88+
}
89+
}
90+
91+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
92+
repositories {
93+
// Add repositories to publish to here.
94+
}
95+
}
96+
97+
fabricApi {
98+
configureDataGeneration()
99+
}

src/main/generated/.cache/581776455c298888cc0e393a738ed797ca3b1a38 renamed to common/src/main/generated/.cache/581776455c298888cc0e393a738ed797ca3b1a38

File renamed without changes.

src/main/generated/data/mcdw/tags/items/common_loot_pool_items.json renamed to common/src/main/generated/data/mcdw/tags/items/common_loot_pool_items.json

File renamed without changes.

src/main/generated/data/mcdw/tags/items/epic_loot_pool_items.json renamed to common/src/main/generated/data/mcdw/tags/items/epic_loot_pool_items.json

File renamed without changes.

src/main/generated/data/mcdw/tags/items/rare_loot_pool_items.json renamed to common/src/main/generated/data/mcdw/tags/items/rare_loot_pool_items.json

File renamed without changes.

src/main/generated/data/mcdw/tags/items/uncommon_loot_pool_items.json renamed to common/src/main/generated/data/mcdw/tags/items/uncommon_loot_pool_items.json

File renamed without changes.
File renamed without changes.

src/main/java/dev/timefall/mcdw/api/interfaces/IDualWielding.java renamed to common/src/main/java/dev/timefall/mcdw/api/interfaces/IDualWielding.java

File renamed without changes.

src/main/java/dev/timefall/mcdw/api/interfaces/IExclusiveAOECloud.java renamed to common/src/main/java/dev/timefall/mcdw/api/interfaces/IExclusiveAOECloud.java

File renamed without changes.

0 commit comments

Comments
 (0)