Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦境迷离
Graphql Java Codegen
提交
6e1bde7d
G
Graphql Java Codegen
项目概览
梦境迷离
/
Graphql Java Codegen
10 个月 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Graphql Java Codegen
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
6e1bde7d
编写于
3月 22, 2023
作者:
B
Bogdan Kobylynskyi
提交者:
GitHub
3月 22, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1057 from kobylynskyi/develop
5.7.1 Release
上级
1cb70566
e3262ecd
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
54 addition
and
24 deletion
+54
-24
build.gradle
build.gradle
+1
-1
plugins/gradle/README.md
plugins/gradle/README.md
+2
-2
plugins/gradle/example-client-kotlin/build.gradle
plugins/gradle/example-client-kotlin/build.gradle
+5
-5
plugins/gradle/example-client/build.gradle
plugins/gradle/example-client/build.gradle
+2
-2
plugins/gradle/example-server/build.gradle
plugins/gradle/example-server/build.gradle
+1
-1
plugins/gradle/graphql-java-codegen-gradle-plugin/build.gradle
...ns/gradle/graphql-java-codegen-gradle-plugin/build.gradle
+1
-1
plugins/gradle/graphql-java-codegen-gradle-plugin/src/main/java/io/github/kobylynskyi/graphql/codegen/gradle/GraphQLCodegenGradleTask.java
...skyi/graphql/codegen/gradle/GraphQLCodegenGradleTask.java
+2
-0
plugins/maven/README.md
plugins/maven/README.md
+1
-1
plugins/maven/example-client/pom.xml
plugins/maven/example-client/pom.xml
+1
-1
plugins/maven/example-server/pom.xml
plugins/maven/example-server/pom.xml
+1
-1
plugins/maven/graphql-java-codegen-maven-plugin/pom.xml
plugins/maven/graphql-java-codegen-maven-plugin/pom.xml
+2
-2
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client-scala/project/plugins.sbt
...degen-sbt-plugin/example-client-scala/project/plugins.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client-scala/version.sbt
...aphql-codegen-sbt-plugin/example-client-scala/version.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client/project/plugins.sbt
...hql-codegen-sbt-plugin/example-client/project/plugins.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client/version.sbt
...est/graphql-codegen-sbt-plugin/example-client/version.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/simple/project/plugins.sbt
...est/graphql-codegen-sbt-plugin/simple/project/plugins.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/simple/version.sbt
...rc/sbt-test/graphql-codegen-sbt-plugin/simple/version.sbt
+1
-1
plugins/sbt/graphql-java-codegen-sbt-plugin/version.sbt
plugins/sbt/graphql-java-codegen-sbt-plugin/version.sbt
+1
-1
src/test/java/com/kobylynskyi/graphql/codegen/GraphQLCodegenAnnotationsTest.java
...ynskyi/graphql/codegen/GraphQLCodegenAnnotationsTest.java
+13
-0
src/test/resources/schemas/input.graphqls
src/test/resources/schemas/input.graphqls
+15
-0
未找到文件。
build.gradle
浏览文件 @
6e1bde7d
...
...
@@ -9,7 +9,7 @@ plugins {
id
"org.sonarqube"
version
"3.2.0"
}
def
graphqlCodegenVersion
=
'5.7.
0
'
// This variable used in the automatic release process
def
graphqlCodegenVersion
=
'5.7.
1
'
// This variable used in the automatic release process
group
=
"io.github.kobylynskyi"
version
=
graphqlCodegenVersion
...
...
plugins/gradle/README.md
浏览文件 @
6e1bde7d
...
...
@@ -17,7 +17,7 @@
```
groovy
plugins
{
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
0
"
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
1
"
}
```
...
...
@@ -31,7 +31,7 @@ buildscript {
}
}
dependencies
{
classpath
"io.github.kobylynskyi.graphql.codegen:graphql-codegen-gradle-plugin:5.7.
0
"
classpath
"io.github.kobylynskyi.graphql.codegen:graphql-codegen-gradle-plugin:5.7.
1
"
}
}
...
...
plugins/gradle/example-client-kotlin/build.gradle
浏览文件 @
6e1bde7d
...
...
@@ -4,10 +4,10 @@ import io.github.kobylynskyi.graphql.codegen.gradle.GraphQLCodegenGradleTask
plugins
{
id
"java"
id
"org.jetbrains.kotlin.jvm"
version
"1.6.21"
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
0
"
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
1
"
}
def
graphqlCodegenClientKotlinVersion
=
'5.7.
0
'
// Variable used in the automatic release process
def
graphqlCodegenClientKotlinVersion
=
'5.7.
1
'
// Variable used in the automatic release process
group
=
'io.github.dreamylost'
version
=
graphqlCodegenClientKotlinVersion
...
...
@@ -29,7 +29,7 @@ repositories {
dependencies
{
implementation
"io.github.kobylynskyi:graphql-java-codegen:5.7.
0
"
implementation
"io.github.kobylynskyi:graphql-java-codegen:5.7.
1
"
implementation
"javax.validation:validation-api:2.0.1.Final"
implementation
"com.squareup.okhttp3:okhttp:4.2.2"
implementation
"com.fasterxml.jackson.core:jackson-core:2.13.3"
...
...
@@ -37,8 +37,8 @@ dependencies {
implementation
"com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3"
implementation
"com.fasterxml.jackson.core:jackson-annotations:2.13.3"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation
"org.junit.jupiter:junit-jupiter-api:5.7.
0
"
testRuntimeOnly
"org.junit.jupiter:junit-jupiter-engine:5.7.
0
"
testImplementation
"org.junit.jupiter:junit-jupiter-api:5.7.
1
"
testRuntimeOnly
"org.junit.jupiter:junit-jupiter-engine:5.7.
1
"
}
/**
...
...
plugins/gradle/example-client/build.gradle
浏览文件 @
6e1bde7d
...
...
@@ -7,7 +7,7 @@ plugins {
// use the latest available version:
// https://plugins.gradle.org/plugin/io.github.kobylynskyi.graphql.codegen
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
0
"
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
1
"
}
mainClassName
=
"io.github.kobylynskyi.order.Application"
...
...
@@ -22,7 +22,7 @@ dependencies {
// use the latest available version:
// https://search.maven.org/artifact/io.github.kobylynskyi/graphql-java-codegen
implementation
"io.github.kobylynskyi:graphql-java-codegen:5.7.
0
"
implementation
"io.github.kobylynskyi:graphql-java-codegen:5.7.
1
"
implementation
"org.apache.httpcomponents:httpclient:4.5.13"
implementation
"javax.validation:validation-api:2.0.1.Final"
...
...
plugins/gradle/example-server/build.gradle
浏览文件 @
6e1bde7d
...
...
@@ -6,7 +6,7 @@ plugins {
//
// use the latest available version:
// https://plugins.gradle.org/plugin/io.github.kobylynskyi.graphql.codegen
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
0
"
id
"io.github.kobylynskyi.graphql.codegen"
version
"5.7.
1
"
}
mainClassName
=
"io.github.kobylynskyi.product.Application"
...
...
plugins/gradle/graphql-java-codegen-gradle-plugin/build.gradle
浏览文件 @
6e1bde7d
...
...
@@ -16,7 +16,7 @@ apply plugin: "java"
apply
plugin:
"idea"
apply
plugin:
"maven-publish"
def
graphqlCodegenGradlePluginVersion
=
'5.7.
0
'
// This variable used in the automatic release process
def
graphqlCodegenGradlePluginVersion
=
'5.7.
1
'
// This variable used in the automatic release process
group
=
"io.github.kobylynskyi"
version
=
graphqlCodegenGradlePluginVersion
...
...
plugins/gradle/graphql-java-codegen-gradle-plugin/src/main/java/io/github/kobylynskyi/graphql/codegen/gradle/GraphQLCodegenGradleTask.java
浏览文件 @
6e1bde7d
...
...
@@ -134,6 +134,8 @@ public class GraphQLCodegenGradleTask extends DefaultTask implements GraphQLCode
mappingConfig
.
setPackageName
(
packageName
);
mappingConfig
.
setCustomTypesMapping
(
customTypesMapping
!=
null
?
customTypesMapping
:
new
HashMap
<>());
mappingConfig
.
setCustomAnnotationsMapping
(
customAnnotationsMapping
!=
null
?
customAnnotationsMapping
:
new
HashMap
<>());
mappingConfig
.
setCustomTemplates
(
customTemplates
!=
null
?
customTemplates
:
new
HashMap
<>());
mappingConfig
.
setDirectiveAnnotationsMapping
(
...
...
plugins/maven/README.md
浏览文件 @
6e1bde7d
...
...
@@ -20,7 +20,7 @@
<plugin>
<groupId>
io.github.kobylynskyi
</groupId>
<artifactId>
graphql-codegen-maven-plugin
</artifactId>
<version>
5.7.
0
</version>
<version>
5.7.
1
</version>
<executions>
<execution>
<goals>
...
...
plugins/maven/example-client/pom.xml
浏览文件 @
6e1bde7d
...
...
@@ -4,7 +4,7 @@
<groupId>
io.github.kobylynskyi
</groupId>
<artifactId>
graphql-codegen-maven-plugin-example-client
</artifactId>
<version>
5.7.
0
</version>
<version>
5.7.
1
</version>
<name>
graphql-codegen-maven-plugin-example-client
</name>
<build>
...
...
plugins/maven/example-server/pom.xml
浏览文件 @
6e1bde7d
...
...
@@ -4,7 +4,7 @@
<groupId>
io.github.kobylynskyi
</groupId>
<artifactId>
graphql-codegen-maven-plugin-example-server
</artifactId>
<version>
5.7.
0
</version>
<version>
5.7.
1
</version>
<name>
graphql-codegen-maven-plugin-example-server
</name>
<build>
...
...
plugins/maven/graphql-java-codegen-maven-plugin/pom.xml
浏览文件 @
6e1bde7d
...
...
@@ -3,7 +3,7 @@
<groupId>
io.github.kobylynskyi
</groupId>
<artifactId>
graphql-codegen-maven-plugin
</artifactId>
<version>
5.7.
0
</version>
<version>
5.7.
1
</version>
<packaging>
maven-plugin
</packaging>
<name>
graphql-codegen-maven-plugin
</name>
...
...
@@ -72,7 +72,7 @@
<version.maven-gpg-plugin>
3.0.1
</version.maven-gpg-plugin>
<version.maven-shared-utils>
3.3.4
</version.maven-shared-utils>
<version.graphql-java-codegen>
5.7.
0
</version.graphql-java-codegen>
<version.graphql-java-codegen>
5.7.
1
</version.graphql-java-codegen>
</properties>
<dependencies>
...
...
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client-scala/project/plugins.sbt
浏览文件 @
6e1bde7d
addSbtPlugin
(
"io.github.jxnu-liguobin"
%
"graphql-codegen-sbt-plugin"
%
"5.7.
0
"
)
addSbtPlugin
(
"io.github.jxnu-liguobin"
%
"graphql-codegen-sbt-plugin"
%
"5.7.
1
"
)
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client-scala/version.sbt
浏览文件 @
6e1bde7d
version
in
ThisBuild
:=
"5.7.
0
"
version
in
ThisBuild
:=
"5.7.
1
"
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client/project/plugins.sbt
浏览文件 @
6e1bde7d
addSbtPlugin
(
"io.github.jxnu-liguobin"
%
"graphql-codegen-sbt-plugin"
%
"5.7.
0
"
)
addSbtPlugin
(
"io.github.jxnu-liguobin"
%
"graphql-codegen-sbt-plugin"
%
"5.7.
1
"
)
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/example-client/version.sbt
浏览文件 @
6e1bde7d
version
in
ThisBuild
:=
"5.7.
0
"
version
in
ThisBuild
:=
"5.7.
1
"
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/simple/project/plugins.sbt
浏览文件 @
6e1bde7d
sys
.
props
.
get
(
"plugin.version"
).
orElse
(
Some
(
"5.7.
0
"
))
match
{
sys
.
props
.
get
(
"plugin.version"
).
orElse
(
Some
(
"5.7.
1
"
))
match
{
case
Some
(
x
)
=>
addSbtPlugin
(
"io.github.jxnu-liguobin"
%
"graphql-codegen-sbt-plugin"
%
x
)
case
_
=>
sys
.
error
(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D."""
.
stripMargin
)
...
...
plugins/sbt/graphql-java-codegen-sbt-plugin/src/sbt-test/graphql-codegen-sbt-plugin/simple/version.sbt
浏览文件 @
6e1bde7d
version
in
ThisBuild
:=
"5.7.
0
"
version
in
ThisBuild
:=
"5.7.
1
"
plugins/sbt/graphql-java-codegen-sbt-plugin/version.sbt
浏览文件 @
6e1bde7d
ThisBuild
/
version
:=
"5.7.
0
"
ThisBuild
/
version
:=
"5.7.
1
"
src/test/java/com/kobylynskyi/graphql/codegen/GraphQLCodegenAnnotationsTest.java
浏览文件 @
6e1bde7d
...
...
@@ -76,6 +76,19 @@ class GraphQLCodegenAnnotationsTest {
" private org.joda.time.DateTime createdDateTime;"
);
}
@Test
void
generate_CustomAnnotationMappings_Input
()
throws
Exception
{
mappingConfig
.
setCustomAnnotationsMapping
(
new
HashMap
<>(
singletonMap
(
"ReproInput.reproField"
,
singletonList
(
"@com.fasterxml.jackson.annotation.JsonProperty(\"reproField\")"
))));
generate
(
"src/test/resources/schemas/input.graphqls"
);
File
[]
files
=
Objects
.
requireNonNull
(
outputJavaClassesDir
.
listFiles
());
assertFileContainsElements
(
files
,
"ReproInput.java"
,
" @com.fasterxml.jackson.annotation.JsonProperty(\"reproField\")\n"
+
" private java.util.List<String> reproField;"
);
}
@Test
void
generate_CustomAnnotationMappings_Regexp
()
throws
Exception
{
mappingConfig
.
setCustomTypesMapping
(
new
HashMap
<>(
singletonMap
(
"DateTime"
,
"org.joda.time.DateTime"
)));
...
...
src/test/resources/schemas/input.graphqls
0 → 100644
浏览文件 @
6e1bde7d
schema {
query: Query
}
type Query {
repro(input: ReproInput!): ReproOutput
}
input ReproInput {
reproField: [String!]!
}
type ReproOutput {
id: ID!
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录