Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/sbt/graphql-java-codegen-sbt-plugin/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lazy val `graphql-codegen-sbt-plugin` = Project(id = "graphql-codegen-sbt-plugin
"org.freemarker" % "freemarker" % "2.3.31",
"com.graphql-java" % "graphql-java" % "16.2",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.12.1",
"com.typesafe" % "config" % "1.4.1"
"com.typesafe" % "config" % "1.4.2"
),
buildInfoKeys := Seq[BuildInfoKey](name, version, sbtVersion, jValidationVersion),
buildInfoPackage := "io.github.dreamylost.graphql.codegen"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
/**
* sbt publish setting
*
* @author 梦境迷离 dreamylost
* @author 梦境迷离
* @since 2020-07-19
* @version v1.0
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.7
sbt.version=1.7.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import sbt.Configuration

/**
*
* @author 梦境迷离 dreamylost
* @author 梦境迷离
* @since 2020-07-18
* @version v1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ package io.github.dreamylost.graphql.codegen

import java.util

import com.kobylynskyi.graphql.codegen.model.{ ApiInterfaceStrategy, ApiNamePrefixStrategy, ApiRootInterfaceStrategy, RelayConfig }
import com.kobylynskyi.graphql.codegen.model._
import sbt._
import com.kobylynskyi.graphql.codegen.model.GeneratedLanguage

/**
*
* @author [email protected]
* @author 梦境迷离
* @version 1.0,2020/7/15
*/
trait GraphQLCodegenKeys {
Expand Down Expand Up @@ -126,11 +125,11 @@ trait GraphQLCodegenKeys {

val generateSealedInterfaces = settingKey[Boolean]("If true, generate sealed interfaces for GraphQL unions and interfaces, else generate normal interfaces.")

val generateJacksonTypeIdResolver = settingKey[Boolean]("Specifies whether generated union interfaces should be annotated with a custom Jackson type id resolver generated in model package")
val generateJacksonTypeIdResolver = settingKey[Boolean]("Specifies whether generated union interfaces should be annotated with a custom Jackson type id resolver generated in model package.")

//for version
val javaxValidationApiVersion = settingKey[Option[String]]("javax-validation-api version")
val graphqlJavaCodegenVersion = settingKey[Option[String]]("graphql java codegen version")
val graphqlJavaCodegenVersion = settingKey[Option[String]]("graphql-java-codegen version")

//some others for sbt
val generateCodegenTargetPath = settingKey[File]("Where to store generated files and add the generated code to the classpath, so that they can be referenced.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.kobylynskyi.graphql.codegen.model._
import com.kobylynskyi.graphql.codegen.model.exception.LanguageNotSupportedException
import com.kobylynskyi.graphql.codegen.model.GeneratedLanguage._
import com.kobylynskyi.graphql.codegen.scala.ScalaGraphQLCodegen
import com.kobylynskyi.graphql.codegen.supplier.{ MergeableMappingConfigSupplier, SchemaFinder }
import com.kobylynskyi.graphql.codegen.supplier._
import sbt.{ AutoPlugin, PluginTrigger, _ }
import sbt.Keys.{ sLog, sourceManaged, _ }
import sbt.internal.util.complete.DefaultParsers.spaceDelimited
Expand All @@ -19,7 +19,7 @@ import sbt.Def

/**
*
* @author [email protected]
* @author 梦境迷离
* @version 1.0,2020/7/15
*/
object GraphQLCodegenPlugin extends GraphQLCodegenPlugin(Compile, configurationPostfix = "-main") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package io.github.dreamylost.graphql.codegen

/**
*
* @author [email protected]
* @author 梦境迷离
* @version 1.0,2020/7/15
*/
case class ParentInterfacesConfig(
final case class ParentInterfacesConfig(
queryResolver: String = null,
mutationResolver: String = null,
subscriptionResolver: String = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import com.kobylynskyi.graphql.codegen.supplier.SchemaFinder

/**
*
* @author [email protected]
* @author 梦境迷离
* @version 1.0,2020/7/15
*/
case class SchemaFinderConfig(
final case class SchemaFinderConfig(
rootDir: String,
recursive: Boolean = SchemaFinder.DEFAULT_RECURSIVE,
includePattern: String = SchemaFinder.DEFAULT_INCLUDE_PATTERN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import scala.concurrent.Future
/**
* example, use a async api
*
* @author 梦境迷离 dreamylost
* @author 梦境迷离
* @since 2020-07-19
* @version v1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

/**
*
* @author [email protected]
* @author 梦境迷离
* @version 1.0,2020/7/15
*/
object Test {
Expand Down