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