Skip to content

Commit 7a9eb3f

Browse files
committed
Extract graphql-jpa-query-api into separate module
1 parent 40cb4e4 commit 7a9eb3f

12 files changed

+60
-0
lines changed

api/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.introproventures</groupId>
8+
<artifactId>graphql-jpa-query-dependencies</artifactId>
9+
<version>1.2.13-SNAPSHOT</version>
10+
<relativePath>../dependencies</relativePath>
11+
</parent>
12+
13+
<packaging>jar</packaging>
14+
15+
<artifactId>graphql-jpa-query-api</artifactId>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.introproventures</groupId>
20+
<artifactId>graphql-jpa-query-annotations</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.atteo</groupId>
24+
<artifactId>evo-inflector</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>com.graphql-java</groupId>
28+
<artifactId>graphql-java</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.introproventures</groupId>
32+
<artifactId>graphql-jpa-query-introspection</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>jakarta.persistence</groupId>
36+
<artifactId>jakarta.persistence-api</artifactId>
37+
</dependency>
38+
</dependencies>
39+
40+
</project>

schema/src/main/java/com/introproventures/graphql/jpa/query/schema/GraphQLSchemaBuilder.java renamed to api/src/main/java/com/introproventures/graphql/jpa/query/schema/GraphQLSchemaBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ public interface GraphQLSchemaBuilder {
7575
*/
7676
GraphQLSchemaBuilder graphQLIDType(boolean useGraphQLIDType);
7777

78+
/**
79+
* Register restricted keys provider
80+
*
81+
* @param restrictedKeysProvider instance
82+
* @return this builder instance
83+
*/
84+
GraphQLSchemaBuilder restrictedKeysProvider(RestrictedKeysProvider restrictedKeysProvider);
85+
7886
/**
7987
* Builds {code #GraphQLSchema} instance
8088
*

dependencies/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
<artifactId>graphql-jpa-query-scalars</artifactId>
6161
<version>${project.version}</version>
6262
</dependency>
63+
<dependency>
64+
<groupId>com.introproventures</groupId>
65+
<artifactId>graphql-jpa-query-api</artifactId>
66+
<version>${project.version}</version>
67+
</dependency>
6368
<dependency>
6469
<groupId>com.introproventures</groupId>
6570
<artifactId>graphql-jpa-query-schema</artifactId>

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@
347347
<modules>
348348
<module>annotations</module>
349349
<module>scalars</module>
350+
<module>api</module>
350351
<module>schema</module>
351352
<module>boot-starter</module>
352353
<module>dependencies</module>
@@ -363,6 +364,7 @@
363364
<modules>
364365
<module>annotations</module>
365366
<module>scalars</module>
367+
<module>api</module>
366368
<module>schema</module>
367369
<module>boot-starter</module>
368370
<module>dependencies</module>

schema/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<artifactId>graphql-jpa-query-annotations</artifactId>
2323
</dependency>
2424

25+
<dependency>
26+
<groupId>com.introproventures</groupId>
27+
<artifactId>graphql-jpa-query-api</artifactId>
28+
</dependency>
29+
2530
<dependency>
2631
<groupId>com.introproventures</groupId>
2732
<artifactId>graphql-jpa-query-scalars</artifactId>

0 commit comments

Comments
 (0)