graphql-maven-plugin-samples-allGraphQLCases-pojo-server
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin-samples-allGraphQLCases-pojo-server</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 https://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-allGraphQLCases-pojo-server</artifactId> <description>This module do integration tests for the generatePojo goal, in server mode</description> <build> <plugins> <plugin> <groupId>com.graphql-java-generator</groupId> <artifactId>graphql-maven-plugin</artifactId> <executions> <execution> <id>generatePojo-server</id> <goals> <goal>generatePojo</goal> </goals> <configuration> <!-- Choosing client or server is useless. It's here only to check that if used, everything is still Ok --> <mode>server</mode> <packageName>org.allGraphQLCases.server.pojo</packageName> <schemaFileFolder>../graphql-maven-plugin-samples-allGraphQLCases-client/src/graphqls/allGraphQLCases</schemaFileFolder> <skipGenerationIfSchemaHasNotChanged>true</skipGenerationIfSchemaHasNotChanged> <customScalars> <customScalar> <graphQLTypeName>Base64String</graphQLTypeName> <javaType>byte[]</javaType> <graphQLScalarTypeStaticField>com.graphql_java_generator.customscalars.GraphQLScalarTypeBase64String</graphQLScalarTypeStaticField> </customScalar> <customScalar> <graphQLTypeName>Date</graphQLTypeName> <javaType>java.util.Date</javaType> <graphQLScalarTypeStaticField>com.graphql_java_generator.customscalars.GraphQLScalarTypeDate.Date </graphQLScalarTypeStaticField> </customScalar> <customScalar> <graphQLTypeName>DateTime</graphQLTypeName> <javaType>java.time.OffsetDateTime</javaType> <graphQLScalarTypeStaticField>graphql.scalars.ExtendedScalars.DateTime</graphQLScalarTypeStaticField> </customScalar> <customScalar> <graphQLTypeName>else</graphQLTypeName> <javaType>java.lang.String</javaType> <graphQLScalarTypeGetter>org.allGraphQLCases.GraphQLScalarTypeElse.getElseScalar()</graphQLScalarTypeGetter> </customScalar> <customScalar> <graphQLTypeName>Long</graphQLTypeName> <javaType>java.lang.Long</javaType> <graphQLScalarTypeStaticField>graphql.scalars.ExtendedScalars.GraphQLLong</graphQLScalarTypeStaticField> </customScalar> <customScalar> <graphQLTypeName>NonNegativeInt</graphQLTypeName> <javaType>java.lang.Integer</javaType> <graphQLScalarTypeStaticField>graphql.scalars.ExtendedScalars.NonNegativeInt</graphQLScalarTypeStaticField> </customScalar> </customScalars> </configuration> </execution> </executions> </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> <!-- 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> <!-- Complementary graphql dependencies, for the custom scalars --> <dependency> <groupId>com.graphql-java</groupId> <artifactId>graphql-java-extended-scalars</artifactId> </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>