Skip to content

Commit fff0d2c

Browse files
committed
Restructure (and rename) to add a fetch() implementation
1 parent 9c285e7 commit fff0d2c

10 files changed

Lines changed: 908 additions & 164 deletions

File tree

grpc-gwt/pom.xml

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
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.vertispan.grpc</groupId>
8+
<artifactId>grpc-web-gwt-parent</artifactId>
9+
<version>HEAD-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>grpc-gwt</artifactId>
13+
<version>1.63.1-1-SNAPSHOT</version>
14+
<packaging>gwt-lib</packaging>
15+
16+
<properties>
17+
<grpc.version>1.63.1</grpc.version>
18+
19+
<maven.compiler.source>11</maven.compiler.source>
20+
<maven.compiler.target>11</maven.compiler.target>
21+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22+
23+
<maven.gwt.plugin>1.1.0</maven.gwt.plugin>
24+
25+
<maven.gpg.plugin>1.6</maven.gpg.plugin>
26+
<maven.javadoc.plugin>3.2.0</maven.javadoc.plugin>
27+
<maven.source.plugin>3.2.1</maven.source.plugin>
28+
</properties>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.vertispan.protobuf</groupId>
33+
<artifactId>protobuf-gwt</artifactId>
34+
<version>3.25.4-2</version>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>com.google.guava</groupId>
39+
<artifactId>guava-gwt</artifactId>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>com.google.api.grpc</groupId>
44+
<artifactId>proto-google-common-protos</artifactId>
45+
<version>2.29.0</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>com.google.api.grpc</groupId>
49+
<artifactId>proto-google-common-protos</artifactId>
50+
<version>2.29.0</version>
51+
<classifier>sources</classifier>
52+
</dependency>
53+
54+
55+
<dependency>
56+
<groupId>org.gwtproject</groupId>
57+
<artifactId>gwt-dev</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.gwtproject</groupId>
62+
<artifactId>gwt-user</artifactId>
63+
<scope>test</scope>
64+
</dependency>
65+
<dependency>
66+
<groupId>junit</groupId>
67+
<artifactId>junit</artifactId>
68+
<version>4.13.2</version>
69+
<scope>test</scope>
70+
</dependency>
71+
</dependencies>
72+
73+
<build>
74+
<plugins>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-dependency-plugin</artifactId>
78+
<version>3.8.1</version>
79+
<executions>
80+
<execution>
81+
<id>unpack</id>
82+
<goals>
83+
<goal>unpack</goal>
84+
</goals>
85+
<phase>generate-sources</phase>
86+
<configuration>
87+
<artifactItems>
88+
<artifactItem>
89+
<groupId>io.grpc</groupId>
90+
<artifactId>grpc-api</artifactId>
91+
<version>${grpc.version}</version>
92+
<type>jar</type>
93+
<classifier>sources</classifier>
94+
</artifactItem>
95+
<artifactItem>
96+
<groupId>io.grpc</groupId>
97+
<artifactId>grpc-stub</artifactId>
98+
<version>${grpc.version}</version>
99+
<type>jar</type>
100+
<classifier>sources</classifier>
101+
</artifactItem>
102+
<artifactItem>
103+
<groupId>io.grpc</groupId>
104+
<artifactId>grpc-protobuf</artifactId>
105+
<version>${grpc.version}</version>
106+
<type>jar</type>
107+
<classifier>sources</classifier>
108+
</artifactItem>
109+
<artifactItem>
110+
<groupId>io.grpc</groupId>
111+
<artifactId>grpc-protobuf-lite</artifactId>
112+
<version>${grpc.version}</version>
113+
<type>jar</type>
114+
<classifier>sources</classifier>
115+
</artifactItem>
116+
</artifactItems>
117+
<outputDirectory>src/main/java</outputDirectory>
118+
</configuration>
119+
</execution>
120+
</executions>
121+
</plugin>
122+
<plugin>
123+
<groupId>org.openrewrite.maven</groupId>
124+
<artifactId>rewrite-maven-plugin</artifactId>
125+
<version>6.8.0</version>
126+
<executions>
127+
<execution>
128+
<id>rewrite</id>
129+
<phase>process-sources</phase>
130+
<goals>
131+
<goal>run</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
<configuration>
136+
<runPerSubmodule>true</runPerSubmodule>
137+
<activeRecipes>
138+
<recipe>com.vertispan.recipes.GrpcForGwt</recipe>
139+
</activeRecipes>
140+
<configLocation>${maven.multiModuleProjectDirectory}/grpc-gwt/rewrite.yaml</configLocation>
141+
<exclusions>
142+
<exclusion>**/src/test/**</exclusion>
143+
</exclusions>
144+
</configuration>
145+
<dependencies>
146+
<dependency>
147+
<groupId>com.vertispan.recipes</groupId>
148+
<artifactId>gwt-compatible-recipes</artifactId>
149+
<version>2.0</version>
150+
</dependency>
151+
</dependencies>
152+
</plugin>
153+
<plugin>
154+
<groupId>net.ltgt.gwt.maven</groupId>
155+
<artifactId>gwt-maven-plugin</artifactId>
156+
<version>${maven.gwt.plugin}</version>
157+
<extensions>true</extensions>
158+
<configuration>
159+
<moduleName>io.grpc.Grpc</moduleName>
160+
</configuration>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-clean-plugin</artifactId>
165+
<version>3.4.1</version>
166+
<configuration>
167+
<!-- Also configure the plugin to remove the unpacked+rewritten sources -->
168+
<filesets>
169+
<fileset>
170+
<directory>src/main/java</directory>
171+
<includes>
172+
<include>io/</include>
173+
<include>META-INF/</include>
174+
</includes>
175+
</fileset>
176+
</filesets>
177+
</configuration>
178+
</plugin>
179+
180+
</plugins>
181+
</build>
182+
183+
<!-- <modules>-->
184+
<!-- <module>grpc-web-gwt</module>-->
185+
<!-- <module>grpc-web-gwt</module>-->
186+
<!-- </modules>-->
187+
<profiles>
188+
<!-- release profile to create sources, javadoc, and sign all artifacts before uploading -->
189+
<profile>
190+
<id>release</id>
191+
<build>
192+
<plugins>
193+
<plugin>
194+
<groupId>org.apache.maven.plugins</groupId>
195+
<artifactId>maven-source-plugin</artifactId>
196+
<version>${maven.source.plugin}</version>
197+
<executions>
198+
<execution>
199+
<id>attach-sources</id>
200+
<goals>
201+
<goal>jar-no-fork</goal>
202+
</goals>
203+
</execution>
204+
</executions>
205+
</plugin>
206+
<plugin>
207+
<groupId>org.apache.maven.plugins</groupId>
208+
<artifactId>maven-javadoc-plugin</artifactId>
209+
<version>${maven.javadoc.plugin}</version>
210+
<executions>
211+
<execution>
212+
<id>attach-javadocs</id>
213+
<goals>
214+
<goal>jar</goal>
215+
</goals>
216+
</execution>
217+
</executions>
218+
<configuration>
219+
<doclint>none</doclint>
220+
</configuration>
221+
</plugin>
222+
<!-- see http://central.sonatype.org/pages/working-with-pgp-signatures.html for more detail -->
223+
<plugin>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-gpg-plugin</artifactId>
226+
<version>${maven.gpg.plugin}</version>
227+
<executions>
228+
<execution>
229+
<id>sign-artifacts</id>
230+
<phase>verify</phase>
231+
<goals>
232+
<goal>sign</goal>
233+
</goals>
234+
</execution>
235+
</executions>
236+
</plugin>
237+
</plugins>
238+
</build>
239+
</profile>
240+
</profiles>
241+
242+
</project>
File renamed without changes.

src/main/resources/com/google/rpc/CommonProtos.gwt.xml renamed to grpc-gwt/src/main/resources/com/google/rpc/CommonProtos.gwt.xml

File renamed without changes.

grpc-web-gwt-fetch/pom.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.vertispan.grpc</groupId>
8+
<artifactId>grpc-web-gwt-parent</artifactId>
9+
<version>HEAD-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>grpc-web-gwt-fetch</artifactId>
13+
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>com.google.elemental2</groupId>
18+
<artifactId>elemental2-dom</artifactId>
19+
<version>1.2.3</version>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>com.vertispan.grpc</groupId>
24+
<artifactId>grpc-gwt</artifactId>
25+
<version>1.63.1-1-SNAPSHOT</version>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>com.google.guava</groupId>
30+
<artifactId>guava-gwt</artifactId>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.gwtproject</groupId>
35+
<artifactId>gwt-dev</artifactId>
36+
<scope>test</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.gwtproject</groupId>
40+
<artifactId>gwt-user</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
<dependency>
44+
<groupId>junit</groupId>
45+
<artifactId>junit</artifactId>
46+
<version>4.13.2</version>
47+
<scope>test</scope>
48+
</dependency>
49+
</dependencies>
50+
</project>

0 commit comments

Comments
 (0)