Skip to content

Commit 05fa8a8

Browse files
authored
Clean up shaded jar for processor (#8)
* Removes unnecessary content from being shaded * Relocates any third party code to avoid conflicts with other jars
1 parent 54569f0 commit 05fa8a8

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

gwt-editor-processor/pom.xml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,48 @@
211211
<artifactSet>
212212
<excludes>
213213
<exclude>org.gwtproject.editor:gwt-editor</exclude>
214+
<exclude>org.gwtproject.event:gwt-event</exclude>
214215
<exclude>com.google.auto.service:*</exclude>
215-
<exclude>com.squareup.javapoet:*</exclude>
216216
<exclude>javax.annotation:javax.annotation-api</exclude>
217+
<exclude>javax.validation:validation-api</exclude>
217218
<exclude>com.google.code.findbugs:jsr305</exclude>
218219
<exclude>com.google.j2objc:j2objc-annotations</exclude>
219220
<exclude>com.google.errorprone:error_prone_annotations</exclude>
220221
</excludes>
221222
</artifactSet>
222223
<relocations>
223224
<relocation>
224-
<pattern>com.google.auto.common</pattern>
225-
<shadedPattern>org.gwtproject.editor.shaded.auto.common</shadedPattern>
225+
<pattern>com</pattern>
226+
<shadedPattern>org.gwtproject.editor.shaded.com</shadedPattern>
227+
</relocation>
228+
<relocation>
229+
<pattern>afu</pattern>
230+
<shadedPattern>org.gwtproject.editor.shaded.afu</shadedPattern>
231+
</relocation>
232+
<relocation>
233+
<pattern>org.codehaus</pattern>
234+
<shadedPattern>org.gwtproject.editor.shaded.org.codehaus</shadedPattern>
235+
</relocation>
236+
<relocation>
237+
<pattern>org.checkerframework</pattern>
238+
<shadedPattern>org.gwtproject.editor.shaded.org.checkerframework</shadedPattern>
226239
</relocation>
227240
</relocations>
241+
<createSourcesJar>true</createSourcesJar>
242+
<filters>
243+
<filter>
244+
<artifact>com.google.auto:auto-common</artifact>
245+
<excludes>
246+
<exclude>**/*.java</exclude>
247+
</excludes>
248+
</filter>
249+
<filter>
250+
<artifact>*:*</artifact>
251+
<excludes>
252+
<exclude>META-INF/MANIFEST.MF</exclude>
253+
</excludes>
254+
</filter>
255+
</filters>
228256
</configuration>
229257
</execution>
230258
</executions>

0 commit comments

Comments
 (0)