https://kotlinlang.org logo
#random
Title
# random
m

mcpiroman

11/19/2021, 4:34 PM
Has anyone succeed with the combo of Kotlin + IntelliJ (so far so good) + badass-jlink-plugin + non-module java library like ojdbc?
1
p

Paul Griffith

11/19/2021, 4:59 PM
if it's a non-modular library, you want the
badass-runtime-plugin
which I have successfully used with Kotlin
m

mcpiroman

11/19/2021, 5:06 PM
Oh thanks, I didn't know this brother plugin of the one I mentioned also exists. The think is right know I am able to configure either for the successful build (and runtime) or to make IntelliJ happily resolve dependencies at code-time, but not both.
p

Paul Griffith

11/19/2021, 5:09 PM
hm, that's pretty odd. Is IJ set to delegate build stuff to gradle? I recently set up this project and had no issues getting IJ to resolve dependencies
referring to this 'Build and Run using'
m

mcpiroman

11/19/2021, 5:20 PM
Yes, IJ uses Gradle, it is most probably due to the kind of spaghetti config that includes gradle, module-java and plugin. Hope it will be simpler with this one
It indeed almost works except it fails at runtime due to missing jar's. Do you specify additional `modules`in the `runtime`config? I don't quite get what actually are 'modules' in the non-modular java context.
OK, got that, these are jdk `modules`and I was missing some of them, but now I got that running, thanks!
1
5 Views