-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpom.xml
More file actions
105 lines (94 loc) · 3.17 KB
/
pom.xml
File metadata and controls
105 lines (94 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.0.1</version>
<relativePath />
</parent>
<groupId>com.graphql-java-generator</groupId>
<artifactId>GraphQL-Forum-Maven-Tutorial-client</artifactId>
<version>local-SNAPSHOT</version>
<url>
https://github.com/graphql-java-generator/GraphQL-Forum-Maven-Sample-client</url>
<properties>
<project.java.version>25</project.java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- The graphql plugin's version, used in this tutorial -->
<graphql-maven-plugin.version>4.0.2</graphql-maven-plugin.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${project.java.version}</source>
<target>${project.java.version}</target>
<release>${project.java.version}</release>
<compilerArgs>
<!-- This insures that no warning is propagated to the
generated code, when using copyRuntimeSources=true -->
<arg>-Xlint:all</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>com.graphql-java-generator</groupId>
<artifactId>graphql-maven-plugin</artifactId>
<version>${graphql-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>generateClientCode</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Let's configure the GraphQL Gradle Plugin: -->
<!-- All available parameters are described here: -->
<!--
https://graphql-maven-plugin-project.graphql-java-generator.com/graphql-maven-plugin/generateClientCode-mojo.html -->
<packageName>org.forum.client</packageName>
<customScalars>
<customScalar>
<graphQLTypeName>Date</graphQLTypeName>
<javaType>java.util.Date</javaType>
<graphQLScalarTypeStaticField>
com.graphql_java_generator.customscalars.GraphQLScalarTypeDate.Date</graphQLScalarTypeStaticField>
</customScalar>
</customScalars>
</configuration>
</plugin>
<plugin>
<!-- Needed to properly package the jar or war, so that spring
can link all resources together -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.graphql_forum_sample.client.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- Dependencies for GraphQL -->
<dependency>
<groupId>com.graphql-java-generator</groupId>
<artifactId>graphql-java-client-runtime</artifactId>
<version>${graphql-maven-plugin.version}</version>
</dependency>
</dependencies>
</project>