kobylynskyi / graphql-java-codegen

Make your GraphQL Java application schema-driven.
https://kobylynskyi.github.io/graphql-java-codegen/
MIT License
269 stars 114 forks source link

Consider removing jvm code from kotlin to support kotlin-native #638

Open jxnu-liguobin opened 3 years ago

jxnu-liguobin commented 3 years ago

Maybe it's a separate module or a source directory but it need introduce some kotlin code into this library.

If feasible, it will be divided into general modules and non general modules in the future. Non general modules may be kotlin native, scala3, scala.js, java11(LTS) .......

jxnu-liguobin commented 3 years ago

If we can make these classes into templates and generate them into rootPackage, or replace them with kotlin implementation of independent modules, it seems that we don't need to rely on the JVM. Maybe we can extract these classes as jar, such as: codegen-java/src/main/java, codegen-kotlin/src/main/kotlin

For use, you only need to include one of them in the environment.