aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts15
1 files changed, 14 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 9436d08..b30a011 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -21,9 +21,22 @@ version = "2.0.0"
if (ciRun)
version = "$version+${grgit.branch.current().name}-SNAPSHOT"
+loom {
+ splitEnvironmentSourceSets()
+
+ mods {
+ register("yet-another-config-lib") {
+ sourceSet(sourceSets["main"])
+ sourceSet(sourceSets["client"])
+ }
+ }
+}
+
val testmod by sourceSets.registering {
compileClasspath += sourceSets.main.get().compileClasspath
runtimeClasspath += sourceSets.main.get().runtimeClasspath
+ compileClasspath += sourceSets["client"].compileClasspath
+ runtimeClasspath += sourceSets["client"].runtimeClasspath
}
loom {
@@ -54,7 +67,7 @@ dependencies {
mappings("net.fabricmc:yarn:$minecraftVersion+build.+:v2")
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion")
- modImplementation(fabricApi.module("fabric-resource-loader-v0", "0.67.2+1.19.3"))
+ "modClientImplementation"(fabricApi.module("fabric-resource-loader-v0", "0.67.2+1.19.3"))
"testmodImplementation"(sourceSets.main.get().output)
}