Корневой каталог содержит настройки. градиент:
Код: Выделить всё
rootProject.name = 'demo'
include 'the-library'
include 'core'
include 'ui'
Сначала хочу используйте код из библиотеки в основном модуле, поэтому в сборке ядра написано:
Код: Выделить всё
dependencies {
implementation project(':the-library')
...
}
Теперь к вопросу: я также создал модуль пользовательского интерфейса. используя JavaFX (прошел мастер «Новый модуль» IntelJ и создал модуль JavaFX).
В его build.gradle я добавил зависимость к ядру:
Код: Выделить всё
dependencies {
implementation('com.github.almasb:fxgl:17.3') {
exclude(group: 'org.openjfx')
exclude(group: 'org.jetbrains.kotlin')
}
implementation project(':core')
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
Код: Выделить всё
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\dev\demo\ui\build.gradle' line: 43
* What went wrong:
A problem occurred evaluating root project 'ui'.
> Project with path ':core' could not be found in root project 'ui'.
Кто-нибудь может мне помочь?
[*]Я пытался удалить модуль JavaFX 'ui' и создать заново это
[*]Я пытался воссоздать весь проект
[*]Я пытался использовать другую версию IntelliJ (2023.something)
Подробнее здесь: https://stackoverflow.com/questions/786 ... n-intellij