graphql-maven-plugin-samples-CustomTemplates-client
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin-samples-CustomTemplates-client</artifactId> <version>2.0RC1</version> </dependency>
<?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin-samples</artifactId> <version>2.0RC1</version> </parent> <artifactId>graphql-maven-plugin-samples-CustomTemplates-client</artifactId> <build> <plugins> <plugin> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin</artifactId> <executions> <execution> <goals> <goal>graphql</goal> </goals> </execution> </executions> <configuration> <mode>client</mode> <packageName>com.graphql_java_generator.samples.customtemplates.client.graphql.forum.client</packageName> <customScalars> <customScalar> <graphQLTypeName>Date</graphQLTypeName> <javaType>java.util.Date</javaType> <graphQLScalarTypeStaticField>com.graphql_java_generator.customscalars.GraphQLScalarTypeDate.Date</graphQLScalarTypeStaticField> </customScalar> </customScalars> <templates> <!-- The QUERY_MUTATION is found in the graphql-maven-plugin-samples-CustomTemplates-resttemplate dependency --> <QUERY_MUTATION>templates/resttemplate/client_query_mutation_type.vm.java</QUERY_MUTATION> <!-- The SUBSCRIPTION_EXECUTOR is found in this project, int the src/graphql/customtemplates folder --> <SUBSCRIPTION>src/graphql/customtemplates/client_subscription_type.vm.java</SUBSCRIPTION> </templates> </configuration> <dependencies> <!-- Dependency contains the custom template parametrized in plugin and a QueryExecutor bases on Spring Rest Template --> <dependency> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin-samples-CustomTemplates-resttemplate</artifactId> <version>${project.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-test-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.build.directory}/generated-sources/graphql-maven-plugin</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <!-- Execution of the integration tests --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- This plugin allows to start the SpringBoot Forum-server in the background during the integration tests --> <groupId>com.bazaarvoice.maven.plugins</groupId> <artifactId>process-exec-maven-plugin</artifactId> <executions> <execution> <id>start-Forum-server</id> <goals> <goal>start</goal> </goals> <configuration> <skip>${skipTests}</skip> <name>Forum GraphQL server</name> <workingDir>forum_graphql_server</workingDir> <waitForInterrupt>false</waitForInterrupt> <healthcheckUrl>http://localhost:8182/graphiql</healthcheckUrl> <arguments> <argument>java</argument> <argument>-jar</argument> <argument>${basedir}/../graphql-maven-plugin-samples-Forum-server/target/graphql-maven-plugin-samples-Forum-server-${project.version}.jar</argument> </arguments> </configuration> </execution> <!--Stop all processes in reverse order --> <execution> <id>stop-Forum-server</id> <phase>post-integration-test</phase> <goals> <goal>stop-all</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- We don't want to spam the repository with test/sample artefacts --> <artifactId>maven-deploy-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> <dependencies> <!-- Dependency contains the custom template parametrized in plugin and a QueryExecutor bases on Spring Rest Template --> <dependency> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin-samples-CustomTemplates-resttemplate</artifactId> <version>${project.version}</version> </dependency> <!-- Dependencies for tests --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <scope>test</scope> </dependency> <!-- Dependencies for GraphQL --> <dependency> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-java-client-dependencies</artifactId> <type>pom</type> </dependency> </dependencies> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <reportSets> <reportSet> <id>non-aggregate</id> <reports> <report>javadoc</report> </reports> </reportSet> </reportSets> <configuration> <source>8</source> </configuration> </plugin> </plugins> </reporting> </project>