-
Notifications
You must be signed in to change notification settings - Fork 91
/
pom.xml
182 lines (168 loc) · 8.18 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
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-graphql-server-parent</artifactId>
<version>2.11.1-SNAPSHOT</version>
</parent>
<artifactId>smallrye-graphql-runner</artifactId>
<name>SmallRye: GraphQL Server :: Runner</name>
<packaging>war</packaging>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<jboss.extra.opts>--add-modules java.se</jboss.extra.opts>
<wildfly.version>26.1.0.Final</wildfly.version>
</properties>
<dependencies>
<!-- The implementation (We just use CDI and Common for now, Servlet are being unpacked)-->
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-graphql-cdi</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>smallrye-graphql-schema-builder</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>smallrye-graphql-servlet</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>smallrye-graphql-tck</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>mutiny</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>mutiny-smallrye-context-propagation</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-context-propagation</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config</artifactId>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
</dependency>
<!-- The UI -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>smallrye-graphql-ui-graphiql</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
<!-- This will get the app part of the tck so that we can deploy it, ignoring all the test stuff -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-preview-dist</artifactId>
<version>${wildfly.version}</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-graphql-servlet</artifactId>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<excludes>**/tests/,**/dynamic/,**/*Test.class,**/beans.xml</excludes>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.microprofile.graphql</groupId>
<artifactId>microprofile-graphql-tck</artifactId>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<excludes>**/tests/,**/dynamic/,**/*Test.class,**/beans.xml</excludes>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>smallrye-graphql-tck</artifactId>
<type>test-jar</type>
<classifier>tests</classifier>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>4.1.1.Final</version>
<configuration>
<jbossHome>${project.build.directory}/wildfly-preview-${wildfly.version}</jbossHome>
<server-config>standalone-microprofile.xml</server-config>
<systemProperties>
<jboss.tx.node.id>1</jboss.tx.node.id>
</systemProperties>
<!-- So that you can log into localhost:9990 -->
<add-user>
<users>
<user>
<username>admin</username>
<password>admin</password>
<groups>
<group>admin</group>
</groups>
</user>
</users>
</add-user>
</configuration>
</plugin>
<!-- not completely sure about this, but this is needed to build successfully on JDK 16 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>