Я мигрирую проект Java EE в Quarkus, но у меня проблемы со сборкой Quarkus и jandex
Я создал субмодуль для Quarkus, подобный:
apply plugin: 'io.quarkus'
dependencies {
implementation project(':core')
}
и мой основной подмодуль выглядит примерно так:
apply plugin: 'org.kordamp.gradle.jandex'
dependencies {
implementation 'io.quarkus:quarkus-hibernate-validator'
implementation 'io.quarkus:quarkus-hibernate-orm'
}
Файлы jandex создаются в core / build / jandex и добавляются в основной jar, но сборка все равно не выполняется с:
> Task :quarkus:quarkusBuild FAILED
building quarkus runner
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':quarkus:quarkusBuild'.
> io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor#build threw an exception: io.quarkus.deployment.configuration.ConfigurationError: Unable to properly register the hierarchy of the following JPA classes as they are not in the Jandex index:
- ...
Я пытался скопировать файл jandex, используя:
task copyJandex {
copy {
from "${project(':core').buildDirectory.file("jandex/jandex.idx").get()}"
into "build/resources/main/META-INF"
}
}
classes.dependsOn copyJandex
, но это не помогло решить проблему.
Есть идеи, что может быть не так?