admin管理员组文章数量:1123081
I'm creating multi project in Java with Gradle build tool. My purpose is to working with JavaFx and Android using modules in the multi project. Like
multiproject\
-javafx\
--build.gradle
--settings.gradle
-module1\
--build.gradle
-module2\
--build.gradle
But I'm encountering the problem that I can't build the JavaFx, it shows
A problem occurred evaluating root project 'javafx'.
> Project with path ':module2' could not be found in root project 'javafx'.
/javafx/build.gradle
dependencies {
implementation project(":module2")
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
and in the root project settings.gradle
rootProject.name = 'multiproject'
include 'module1', 'javafx'
include 'module2'
I want to use the modules outside of JavaFx or Android project instead of creating modules inside each project.
And why I don't pack the modules to maven or gradle that I'm still developing the modules belong the project.
Sorry for my bad English, Thanks!
本文标签: javaProject with path 39module239 could not be found in root project 39javafx39Stack Overflow
版权声明:本文标题:java - Project with path ':module2' could not be found in root project 'javafx' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736544517a1944428.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论