https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
g

Goregius

01/15/2020, 9:43 PM
I'm just wondering since you're using gradle now, are you going to add kapt annotation processing? Example shown here: https://spring.io/guides/tutorials/spring-boot-kotlin/#_configuration_properties
s

Shane Myrick

01/15/2020, 9:46 PM
@Goregius Pull requests are welcome! This looks like something that we can add. I am not as familiar with all of the tools available with Gradle so if you know the best way to get config metadata please feel free to update. We should be releasing 2.0.0 soon
d

Dariusz Kuc

01/15/2020, 10:28 PM
configuration properties for spring server should already be available
also afaik kapt works in maven as well 😉
yeah it's a minor thing, it just helps a bit since it means there's no need for the metadata file since it generates the metadata itself. And maybe it does work in maven but I think the annotation processing doesn't work which is what the spring article I linked says
Currently, it outputs the metadata to
build/tmp/classes/main
, I'm not sure how to change this output directory currently so for right now I think the generated metadata might need to be moved manually into the resources folder.
d

Dariusz Kuc

01/15/2020, 11:44 PM
it should be fine
if you build out a jar locally you can open up the archive and verify config metadata is under
META-INF
Ah yeah, it does generate the metadata, I'll remove the metadata file from sources
I tested it with a local jar and imported it in another project. The properties worked, and with documentation as well.
👍 1
2 Views