Chocohead / Fabric-Loom

Gradle build system
MIT License
12 stars 7 forks source link

modImplementation doesn't build subproject dependencies #9

Open BluCobalt opened 3 years ago

BluCobalt commented 3 years ago

For example, lets say you had two subprojects, a and b. a depends on b. Normally, you could just do an implementation with implementation(project(":b")), which would compile subproject b before a, but if you needed to use a modImplementation, the build for a fails because it doesn't build b before a.

NSASomukade commented 2 years ago

Example of similar issue.

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Users\Nico\Desktop\Ledgeprev\build.gradle.kts' line: 59       

* What went wrong:
Script compilation errors:

  Line 059:     minecraft(libs.minecraft)
                          ^ Unresolved reference: libs

  Line 060:     mappings(variantOf(libs.yarn.mappings) { classifier("v2") })
                                   ^ Unresolved reference: libs

  Line 060:     mappings(variantOf(libs.yarn.mappings) { classifier("v2") })
                                                         ^ Unresolved reference: classifier

  Line 061:     modImplementation(libs.fabric.loader)
                                  ^ Unresolved reference: libs

  Line 064:     modImplementation(libs.fabric.api)
                                  ^ Unresolved reference: libs

  Line 067:     modImplementationAndInclude(libs.fabric.permissions)
                                            ^ Unresolved reference: libs

  Line 070:     modImplementationAndInclude(libs.translations)
                                            ^ Unresolved reference: libs

  Line 073:     modImplementation(libs.fabric.kotlin)
                                  ^ Unresolved reference: libs

  Line 076:     shadow(libs.exposed.core)
                       ^ Unresolved reference: libs

  Line 077:     shadow(libs.exposed.dao)
                       ^ Unresolved reference: libs

  Line 078:     shadow(libs.exposed.jdbc)
                       ^ Unresolved reference: libs

  Line 079:     shadow(libs.exposed.java.time)
                       ^ Unresolved reference: libs

  Line 080:     shadow(libs.sqlite.jdbc)
                       ^ Unresolved reference: libs

  Line 083:     shadow(libs.konf.core)
                       ^ Unresolved reference: libs

  Line 084:     shadow(libs.konf.toml)
                       ^ Unresolved reference: libs

  Line 087:     modRuntime(libs.wdmcf)
                           ^ Unresolved reference: libs

  Line 104:                     "fabricLoader" to libs.versions.fabric.loader.get(),
                                                  ^ Unresolved reference: libs

  Line 105:                     "fabricApi" to libs.versions.fabric.api.get(),
                                               ^ Unresolved reference: libs

  Line 106:                     "fabricKotlin" to libs.versions.fabric.kotlin.get(),
                                                  ^ Unresolved reference: libs

  Line 211:             addGameVersion(libs.versions.minecraft.get())
                                       ^ Unresolved reference: libs

  Line 244:         addGameVersion(libs.versions.minecraft.get())
                                   ^ Unresolved reference: libs

21 errors