papsign / Ktor-OpenAPI-Generator

Ktor OpenAPI/Swagger 3 Generator
Apache License 2.0
243 stars 42 forks source link

"Cannot inline bytecode" error in sample #11

Closed SerVB closed 4 years ago

SerVB commented 4 years ago

Hi! I've just copy-pasted the sample and gotten this:

image

The solution has been to update my build.gradle specifying jvmTarget explicitly: https://stackoverflow.com/a/50991772.

Actually, I've never had such an issue with other libs. Maybe there is a way to change the build script or something else somehow to ease the lib usage... Or maybe just giving a warning in README is enough 😀

Wicpar commented 4 years ago

Hi, you have two options: Change your jvm target to 1.8 Change the library's jvm target to 1.6 and rebuild You can do it in their respective build.gradle file

SerVB commented 4 years ago

Is there any reason why this library doesn't contain jvm target 1.6 out-of-the-box?

Wicpar commented 4 years ago

no particular reason beyond convention. If you want a quick fix, you can fork it, change it and get your build on jitpack. You can also do a pull request. I'll change it myself when i merge the new parameter branch

Wicpar commented 4 years ago

I have merged the changes into master and made a release.