pom.xml 5.5 KB
Newer Older
1
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2 3
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
4 5

    <groupId>io.github.kobylynskyi</groupId>
6
    <artifactId>graphql-codegen-maven-plugin-example-server</artifactId>
7
    <version>5.0.0</version>
8
    <name>graphql-codegen-maven-plugin-example-server</name>
9 10 11 12 13 14 15

    <build>
        <plugins>
            <!-- GraphQL Codegen Maven plugin -->
            <plugin>
                <groupId>io.github.kobylynskyi</groupId>
                <artifactId>graphql-codegen-maven-plugin</artifactId>
16 17
                <!-- use the latest available version:
                https://search.maven.org/artifact/io.github.kobylynskyi/graphql-codegen-maven-plugin -->
18
                <version>${project.version}</version>
19 20 21 22 23 24 25
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <graphqlSchemaPaths>
26 27
                                <graphqlSchemaPath>${project.basedir}/src/main/resources/schema.graphqls
                                </graphqlSchemaPath>
28 29
                            </graphqlSchemaPaths>
                            <outputDir>${project.build.directory}/generated-sources/graphql</outputDir>
30 31
                            <apiPackageName>io.github.kobylynskyi.product.graphql.api</apiPackageName>
                            <modelPackageName>io.github.kobylynskyi.product.graphql.model</modelPackageName>
32 33 34 35
                            <customTypesMapping>
                                <DateTime>java.util.Date</DateTime>
                            </customTypesMapping>
                            <modelNameSuffix>TO</modelNameSuffix>
36 37 38
                            <parentInterfaces>
                                <queryResolver>graphql.kickstart.tools.GraphQLQueryResolver</queryResolver>
                                <mutationResolver>graphql.kickstart.tools.GraphQLMutationResolver</mutationResolver>
39 40
                                <subscriptionResolver>graphql.kickstart.tools.GraphQLSubscriptionResolver
                                </subscriptionResolver>
41 42
                                <resolver><![CDATA[graphql.kickstart.tools.GraphQLResolver<{{TYPE}}>]]></resolver>
                            </parentInterfaces>
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- GraphQL Codegen Maven plugin -->

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <source>1.8</source>
                    <target>1.8</target>
                    <showDeprecation>true</showDeprecation>
                    <annotationProcessorPaths>
                        <annotationProcessorPath>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
62
                            <version>1.18.12</version>
63 64 65 66
                        </annotationProcessorPath>
                        <annotationProcessorPath>
                            <groupId>org.mapstruct</groupId>
                            <artifactId>mapstruct-processor</artifactId>
B
Bogdan Kobylynskyi 已提交
67
                            <version>1.4.1.Final</version>
68 69 70 71 72 73 74 75 76 77 78
                        </annotationProcessorPath>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
79
            <version>2.4.4</version>
80 81 82 83
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-mongodb</artifactId>
84
            <version>2.4.4</version>
85 86 87 88 89
        </dependency>

        <dependency>
            <groupId>com.graphql-java-kickstart</groupId>
            <artifactId>graphql-spring-boot-starter</artifactId>
90
            <version>11.0.0</version>
91 92 93 94
        </dependency>
        <dependency>
            <groupId>com.graphql-java-kickstart</groupId>
            <artifactId>graphiql-spring-boot-starter</artifactId>
95
            <version>11.0.0</version>
96
        </dependency>
B
Bogdan Kobylynskyi 已提交
97 98 99
        <dependency>
            <groupId>com.graphql-java</groupId>
            <artifactId>graphql-java-extended-scalars</artifactId>
100
            <version>16.0.0</version>
B
Bogdan Kobylynskyi 已提交
101
        </dependency>
102

103 104 105 106 107 108
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>2.0.1.Final</version>
        </dependency>

109 110 111
        <dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct</artifactId>
112
            <version>1.4.2.Final</version>
113 114 115 116
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
117
            <version>1.18.18</version>
118 119 120
        </dependency>
    </dependencies>

121 122 123 124 125 126 127 128 129
    <repositories>
        <repository>
            <id>jcenter</id>
            <name>jcenter</name>
            <url>https://jcenter.bintray.com</url>
        </repository>
    </repositories>


130
</project>