-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev mode fails discovering a bean in external jar (gradle/kotlin) #35865
Comments
/cc @evanchooly (kotlin), @geoand (kotlin), @glefloch, @quarkusio/devtools |
Has the external jar been indexed as mentioned here? |
tst.zip |
I found out, that making similar bean in java (not kotlin), is a temporary workaround, the bean is found, and used as expected |
I have the same issue in my multi-module project. Kotlin beans are not found, but Java beans are found in the (indexed) external module. |
@Ladicek I'm pretty sure it's not related to Jandex or ArC but I wonder if you could have a look to determine what's going on here. |
I'll take a look. |
OK, so the issue here indeed is not related to ArC or Jandex. The problem is that during
But there's nothing for I tried debugging the Speculation: it is entirely possible that this is just a part of the problem and there's more to it. I didn't look at how the (An |
I'm fairly sure the reproducer failed on 999-SNAPSHOT from yesterday, which would include the fix, but I'll retry just to be sure. |
Ah bummer. |
Maybe wait for 3.14.2 to land to be extra sure. I had some weird refresh issues with Gradle a few times. |
Gotcha. I'll try with 999-SNAPSHOT now and with 3.14.2 once that is out. |
Yeah, so I'm afraid it still fails on current 999-SNAPSHOT (where current means git ref |
OK, I tried :] |
I had another look. From my debugging session, it seems we don't have the lib around in the application model and I'm not really sure how we end up with the resources in the I'm not sure we are supporting whatever Gradle does with this:
I added an updated reproducer pointing to @cdsap if you have an idea what we are doing wrong, I'm all ears. FWIW, the projects are Kotlin only and I know we had a few issues around that. |
Describe the bug
on one side, in a jar, with beans.xml (and/or jandex)
on the other side..
I can run it like this..
but when I run
I get a lot of red output..
Expected behavior
Just like using the java -jar command as mentioned..
Actual behavior
jakarta.enterprise.inject.UnsatisfiedResolutionException
How to Reproduce?
use gradle (8.0 in my case) and kotlin ( in build.gradle.kts is this kotlin("jvm") version "1.9.10"), but gradlew --versions reports 1.8.10, probaby they are used for different purposes
using jdk 19
using quarkus 3.3.2
build project with just one bean producing a jar
second project has a
@Startup
bean that injects the bean from the first projectbuild it
run ./gradlew quarkusDev
It won't inject it..
Output of
uname -a
orver
Linux verliba-lightpaint 6.2.0-31-generic #31~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 16 13:45:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04) OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.3.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)./gradlew --version ------------------------------------------------------------ Gradle 8.0 ------------------------------------------------------------ Build time: 2023-02-13 13:15:21 UTC Revision: 62ab9b7c7f884426cf79fbedcf07658b2dbe9e97 Kotlin: 1.8.10 Groovy: 3.0.13 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 19.0.2 (Private Build 19.0.2+7-Ubuntu-0ubuntu322.04) OS: Linux 6.2.0-31-generic amd64
Additional information
I can provide the ready made minimal project, that does this
The text was updated successfully, but these errors were encountered: