forked from aoudiamoncef/spring-boot-apollo-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
197 lines (186 loc) · 10.4 KB
/
pom.xml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.lahzouz.graphql</groupId>
<artifactId>spring-boot-apollo-client</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>client</name>
<description>Consume GraphQL Etmdb and Universe API's with Apollo Client Maven plugin</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<apollo-client-maven-plugin.version>4.0.1</apollo-client-maven-plugin.version>
<apollo-runtime.version>2.5.6</apollo-runtime.version>
<annotations.version>20.1.0</annotations.version>
<lombok.version>1.18.20</lombok.version>
<springdoc-openapi-ui.version>1.5.7</springdoc-openapi-ui.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>${springdoc-openapi-ui.version}</version>
</dependency>
<dependency>
<groupId>com.apollographql.apollo</groupId>
<artifactId>apollo-runtime</artifactId>
<version>${apollo-runtime.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${annotations.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.aoudiamoncef</groupId>
<artifactId>apollo-client-maven-plugin</artifactId>
<version>${apollo-client-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<skip>false</skip>
<services>
<etmdb>
<introspection>
<enabled>true</enabled>
<endpointUrl>https://etmdb.com/graphql</endpointUrl>
<prettyPrint>true</prettyPrint>
</introspection>
</etmdb>
<unknown>
<enabled>false</enabled>
</unknown>
<universe-api>
<enabled>true</enabled>
<addSourceRoot>true</addSourceRoot>
<sourceFolder>${project.basedir}/src/main/graphql/universe</sourceFolder>
<schemaPath>${project.basedir}/src/main/graphql/universe/schema.json</schemaPath>
<includes>
<include>**/*.graphql</include>
<include>**/*.gql</include>
<include>**/*.json</include>
<include>**/*.sdl"</include>
</includes>
<excludes>
<exclude>**/*.kakah"</exclude>
</excludes>
<compilationUnit>
<name>universe</name>
<outputDirectory>
${project.build.directory}/generated-sources/graphql-client/universe/
</outputDirectory>
<generateOperationDescriptors>true</generateOperationDescriptors>
<operationOutputFile>
${project.build.directory}/generated/operationOutput/apollo/universe/operationOutput.json
</operationOutputFile>
<compilerParams>
<rootFolders>
<rootFolder>${project.basedir}/src/main/graphql/universe/</rootFolder>
</rootFolders>
<generateKotlinModels>false</generateKotlinModels>
<warnOnDeprecatedUsages>true</warnOnDeprecatedUsages>
<failOnWarnings>true</failOnWarnings>
<generateOperationOutput>true</generateOperationOutput>
<customTypeMapping>
<Long>java.lang.Long</Long>
<Date>java.time.LocalDate</Date>
</customTypeMapping>
<operationIdGeneratorClass>
com.apollographql.apollo.compiler.OperationIdGenerator$Sha256
</operationIdGeneratorClass>
<suppressRawTypesWarning>true</suppressRawTypesWarning>
<useSemanticNaming>true</useSemanticNaming>
<nullableValueType>ANNOTATED</nullableValueType>
<generateModelBuilder>true</generateModelBuilder>
<useJavaBeansSemanticNaming>true</useJavaBeansSemanticNaming>
<generateVisitorForPolymorphicDatatypes>
customTypeMapping
</generateVisitorForPolymorphicDatatypes>
<rootPackageName>com.lahzouz.graphql.client.universe</rootPackageName>
<packageName>com.lahzouz.graphql.client.universe</packageName>
<generateAsInternal>true</generateAsInternal>
<sealedClassesForEnumsMatching>.*</sealedClassesForEnumsMatching>
<generateApolloMetadata>true</generateApolloMetadata>
<metadataOutputFile>
${project.build.directory}/generated/metadata/apollo/universe/metadata.json
</metadataOutputFile>
<alwaysGenerateTypesMatching>
<alwaysGenerateTypesMatching>.*</alwaysGenerateTypesMatching>
</alwaysGenerateTypesMatching>
</compilerParams>
</compilationUnit>
<introspection>
<enabled>true</enabled>
<endpointUrl>https://www.universe.com/graphql</endpointUrl>
<headers>
<Authorization>Bearer token</Authorization>
</headers>
<schemaFile>${project.basedir}/src/main/graphql/universe/schema.json
</schemaFile>
<connectTimeoutSeconds>10</connectTimeoutSeconds>
<readTimeoutSeconds>10</readTimeoutSeconds>
<writeTimeoutSeconds>10</writeTimeoutSeconds>
<useSelfSignedCertificat>true</useSelfSignedCertificat>
<useGzip>true</useGzip>
<prettyPrint>true</prettyPrint>
</introspection>
</universe-api>
</services>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
</project>