Hello.. has anyone tried http4k connect from a Ja...
# http4k
s
Hello.. has anyone tried http4k connect from a Java project. We were trying for one of our projects for acceptance test use case . For some reason we could not make it work.. basically after adding the dependency to maven we still can't see classes to import to our project classes. Can create a sample github project if that helps.
a
Hah! Never tried, but can hardly imagine how onerous it would be. Pretty much everything in connect is an extension function, which java is not great at calling. I'm sure you have your reasons for using a kotlin-first library in a java project, but i'd recommend writing a wrapper in Kotlin, presenting a dumbed down interface for your java classes to call.
j
Yeah, would not recommend. But of course, a kotlin project can contain java too, so maybe if you swapped things around, it would just work?