[英]Gradle treating local module as remote dependency
dependencies {
project.logger.lifecycle(project(":Fabric").name)
implementation(project(":Fabric")) {
transitive = false
}
}
我的依賴項塊中有這段代碼。
記錄器運行良好並打印出名稱('Fabric')。
但是,這個奇怪的錯誤導致實現錯誤:
:Test-Fabric:test: Could not find net.flytre.flytre_lib:Fabric:unspecified.
Required by:
project :Test-Fabric
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
編輯:如果我先構建其他模塊,它會起作用,但是這會產生一個可怕的動態,即評論和取消評論絕對不是最佳的依賴項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.