File tree 1 file changed +15
-13
lines changed
1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 32
32
Pulls down protobuf, patches it, compiles, and then relocates/shades.
33
33
</description >
34
34
<build >
35
+ <resources >
36
+ <resource >
37
+ <directory >src/main/java</directory >
38
+ <includes >
39
+ <!-- include the protos -->
40
+ <include >google/**</include >
41
+ </includes >
42
+ </resource >
43
+ </resources >
35
44
<plugins >
36
45
<plugin >
37
46
<!-- Clean needs to purge src/main/java since this is where
78
87
<goal >unpack</goal >
79
88
</goals >
80
89
<configuration >
90
+ <!--
91
+ The protobuf-java has no compile or runtime dependency so we
92
+ only depend it here, without adding it to our dependencies
93
+ section. Need to review later if protobuf-java has compile or
94
+ runtime dependencies in the future.
95
+ -->
81
96
<artifactItems >
82
97
<artifactItem >
83
98
<groupId >com.google.protobuf</groupId >
148
163
<configuration >
149
164
<shadeSourcesContent >true</shadeSourcesContent >
150
165
<createSourcesJar >true</createSourcesJar >
151
- <artifactSet >
152
- <excludes >
153
- <!-- We will compile our own version, so exclude the original one -->
154
- <exclude >com.google.protobuf:protobuf-java</exclude >
155
- </excludes >
156
- </artifactSet >
157
166
<relocations >
158
167
<relocation >
159
168
<pattern >com.google.protobuf</pattern >
177
186
</plugin >
178
187
</plugins >
179
188
</build >
180
- <dependencies >
181
- <dependency >
182
- <groupId >com.google.protobuf</groupId >
183
- <artifactId >protobuf-java</artifactId >
184
- <version >${protobuf.version} </version >
185
- </dependency >
186
- </dependencies >
187
189
</project >
You can’t perform that action at this time.
0 commit comments