Skip to content

Commit

Permalink
progress... sorta
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Mar 6, 2024
1 parent 3c5e786 commit 068b3d9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ tasks.jar {
subprojects {
apply(plugin = "xyz.wagyourtail.unimined")
apply(plugin = "com.github.johnrengelman.shadow")
setupRepos()

val localRuntime: Configuration by configurations.creating {
isCanBeResolved = true
Expand Down Expand Up @@ -140,6 +141,7 @@ fun Project.setupRepos() {
maven("https://maven.cafeteria.dev/releases")
maven("https://maven.jamieswhiteshirt.com/libs-release")
maven("https://maven.theillusivec4.top")
maven("https://mcentral.firstdark.dev/releases")
maven("https://maven.terraformersmc.com/releases") {
content {
includeGroup("com.terraformersmc.modmenu")
Expand Down
7 changes: 6 additions & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import xyz.wagyourtail.unimined.api.unimined

dependencies {
"modImplementation"("net.fabricmc.fabric-api:fabric-api:${"fabric_api"()}+${"minecraft_version"()}")
"modImplementation"("com.terraformersmc:modmenu:${"modmenu"()}")
}

unimined.minecraft {
fabric {
loader("fabric"())
loader("0.15.3")
}

defaultRemapJar = false
Expand Down
8 changes: 8 additions & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ unimined.minecraft {
defaultRemapJar = true
}

tasks.processResources {
from(project(":common").sourceSets["main"].resources)
}

tasks.withType<JavaCompile> {
source(project(":common").sourceSets["main"].java.srcDirs)
}

operator fun String.invoke(): String {
return rootProject.ext[this] as? String
?: throw IllegalStateException("Property $this is not defined")
Expand Down
12 changes: 12 additions & 0 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import xyz.wagyourtail.unimined.api.unimined

dependencies {
implementation(project(":common"))
}

unimined.minecraft {
minecraftForge {
loader("forge"())
Expand All @@ -9,6 +13,14 @@ unimined.minecraft {
defaultRemapJar = true
}

tasks.processResources {
from(project(":common").sourceSets["main"].resources)
}

tasks.withType<JavaCompile> {
source(project(":common").sourceSets["main"].java.srcDirs)
}

operator fun String.invoke(): String {
return rootProject.ext[this] as? String
?: throw IllegalStateException("Property $this is not defined")
Expand Down

0 comments on commit 068b3d9

Please sign in to comment.