Projekt mit Pfad ': Module2' konnte nicht im Root -Projekt 'Javafx' gefunden werdenJava

Java-Forum
Anonymous
 Projekt mit Pfad ': Module2' konnte nicht im Root -Projekt 'Javafx' gefunden werden

Post by Anonymous »

Ich erstelle Multi -Projekt in Java mit Gradle Build -Tool. Mein Ziel ist es, mit Javafx und Android mit Modulen im Multi -Projekt zusammenzuarbeiten. Wie < /p>

Code: Select all

multiproject\
-javafx\
--build.gradle
--settings.gradle
-module1\
--build.gradle
-module2\
--build.gradle
< /code>
, aber ich begegne das Problem, dass ich das Javafx nicht erstellen kann, es zeigt < /p>
A [url=viewtopic.php?t=20324]problem[/url] occurred evaluating root project 'javafx'.
> Project with path ':module2' could not be found in root project 'javafx'.
< /code>
/javafx/build.gradle

Code: Select all

dependencies {
implementation project(":module2")
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
< /code>
and in the root project settings.gradle

rootProject.name = 'multiproject'
include 'module1', 'javafx'
include 'module2'
< /code>
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.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post