gradle KMM:无法从另一个模块引用共享模块commonMain源集类

8fq7wneg  于 2023-08-06  发布在  其他
关注(0)|答案(1)|浏览(124)

我在模块中包含了一个要引用的共享模型,但似乎无法导入它

plugins {
    kotlin("jvm") version "1.8.20"
    kotlin("plugin.allopen") version "1.8.20"
    id("io.quarkus")
}

repositories {
    mavenCentral()
    mavenLocal()
}

val quarkusPlatformGroupId: String by project
val quarkusPlatformArtifactId: String by project
val quarkusPlatformVersion: String by project

dependencies {
    //removing configuration = configurations.default.name causes errors that's why it's there
    implementation(project(path = ":shared", configuration = configurations.default.name)) 
    //...other deps
}

//..other

字符串
它提供了添加相同的依赖性,我已经添加。


的数据


1aaf6o9v

1aaf6o9v1#

我不得不在build.grade中添加backendMain文件夹和jvm(“backend”)到共享模块

相关问题