Skip to content
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

Issues with Kotlin and Beans #38

Open
jonasbark opened this issue Apr 12, 2021 · 0 comments
Open

Issues with Kotlin and Beans #38

jonasbark opened this issue Apr 12, 2021 · 0 comments

Comments

@jonasbark
Copy link
Contributor

Sorry for the lack of a better title but I found very weird behavior when trying to include the embedded-keycloak-server dependency in a Kotlin Spring Boot project.
I created a very barebone project where it's reproducible:

https://github.com/jonasbark/embedded-keycloak-server-kotlin-issue

The issue:

Parameter 0 of constructor in pass.PassAuthenticationApplication required a bean of type 'pass.test.KotlinBean' that could not be found.

When removing the dependency from line 36 in build.gradle.kts it starts up just fine so I'm super confused as to why.

Observations:

  • if the KotlinBean is written in Java it works without issue (hence including Kotlin in the issue title)
  • happens with maven projects as well. The issue actually popped up after I tried upgrading to 3.0.1 from 2.0.* and suddenly the beans weren't available anymore

Let me know if I can provide more information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant