Skip to content

Commit

Permalink
made common module use unimined, might not build yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Oct 15, 2024
1 parent 71ac4b8 commit a93524e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
50 changes: 39 additions & 11 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
plugins {
id "fabric-loom" version "1.6.+"
id "xyz.wagyourtail.unimined" version "1.3.9-SNAPSHOT"
}
archivesBaseName = "${rootProject.archive_base_name}-common"

loom {
accessWidenerPath = file("src/main/resources/gtcore.accesswidener")
unimined.minecraft {
accessWidener {
accessWidener(file("src/main/resources/gtcore.accesswidener"))
}

defaultRemapJar = false

mods.modImplementation {
namespace("intermediary")
}

mods {
remap(configurations.modCompileOnly){
catchAWNamespaceAssertion()
}
remap(configurations.modRuntimeOnly){
catchAWNamespaceAssertion()
}
modImplementation {
catchAWNamespaceAssertion()
}
}

mappings {
intermediary()
mojmap()
devFallbackNamespace "official"
devNamespace "mojmap"
parchment(rootProject.minecraft_version, rootProject.mappings_version)
}
}

configurations {
modCompileOnly
compileOnly.extendsFrom modCompileOnly
modRuntimeOnly
runtimeOnly.extendsFrom modRuntimeOnly
}

dependencies {
Expand Down Expand Up @@ -39,14 +74,7 @@ publishing {
publications {
mavenJava(org.gradle.api.publish.maven.MavenPublication) {
artifactId = "gtcore-" + project.name
//from components.java
artifact(sourcesJar) {
builtBy remapSourcesJar
}
artifact jar
afterEvaluate {
artifact remapJar
}
from components.java
}
}
repositories {
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ pluginManagement {
}
maven { url('https://maven.minecraftforge.net')}
maven { url "https://maven.neoforged.net/" }
maven {
url = "https://maven.wagyourtail.xyz/releases"
}
maven {
url = "https://maven.wagyourtail.xyz/snapshots"
}
gradlePluginPortal()
mavenCentral()
}
Expand Down

0 comments on commit a93524e

Please sign in to comment.