当前位置: 代码迷 >> 综合 >> graphql-java-codegen - 基于模式驱动构建GraphQL应用程序 Scala
  详细解决方案

graphql-java-codegen - 基于模式驱动构建GraphQL应用程序 Scala

热度:114   发布时间:2023-09-23 10:12:22.0

基于模式驱动构建GraphQL应用程序 release 4.0.0 发布

支持生成Scala代码(预览阶段),新增配置项generatedLanguage := com.kobylynskyi.graphql.codegen.model.GeneratedLanguage.SCALA

默认生成Java代码。

只需要导入插件。

sbt

libraryDependencies += "io.github.jxnu-liguobin" % "graphql-codegen-sbt-plugin" % "4.0.0"

gradle

plugins {id "io.github.kobylynskyi.graphql.codegen" version "4.0.0"
}buildscript {repositories {maven {url "https://plugins.gradle.org/m2/"}}dependencies {classpath "io.github.kobylynskyi.graphql.codegen:graphql-codegen-gradle-plugin:4.0.0"}
}apply plugin: "io.github.kobylynskyi.graphql.codegen"

maven

<build><plugins><plugin><groupId>io.github.kobylynskyi</groupId><artifactId>graphql-codegen-maven-plugin</artifactId><version>4.0.0</version></plugin></plugins>
</build>

具体使用和配置参考 https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins

  相关解决方案