Skip to content

Commit

Permalink
Only apply runtime ModMenu to the test subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Aug 16, 2022
1 parent 85e6c34 commit ca5035e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions GuiTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ loom {
}
}

//configurations.modApi {
// resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
//}

repositories {
mavenLocal();
maven { url "https://server.bbkr.space/artifactory/libs-release" }
maven {
url = "https://maven.terraformersmc.com/releases"
content {
includeGroup "com.terraformersmc"
}
}
}

dependencies {
Expand All @@ -36,6 +37,9 @@ dependencies {
implementation project(path: ':', configuration: 'namedElements')
// TODO: Fix this in Loom (namedElements should expose remapped mod* dependencies)
modImplementation "io.github.cottonmc:Jankson-Fabric:${rootProject.jankson_version}"
modLocalRuntime("com.terraformersmc:modmenu:$rootProject.modmenu_version") {
exclude group: 'net.fabricmc.fabric-api'
}
}

processResources {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ dependencies {
// Using modApi instead of api because of https://github.com/FabricMC/fabric-loom/issues/200
include modApi("io.github.juuxel:libninepatch:${project.libninepatch_version}")

modLocalRuntime(modCompileOnly("com.terraformersmc:modmenu:$project.modmenu_version") {
modCompileOnly("com.terraformersmc:modmenu:$project.modmenu_version") {
exclude group: 'net.fabricmc.fabric-api'
})
}

javadocClasspath project(':javadoc')
}
Expand Down

0 comments on commit ca5035e

Please sign in to comment.