Skip to content

Commit

Permalink
OC-102: enable minification, but tune configuration; we must keep all…
Browse files Browse the repository at this point in the history
… velocity classes, also classes referenced by velocity such as commons-lang
  • Loading branch information
marek-parfianowicz committed Jul 5, 2024
1 parent 6f1b503 commit eca4204
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion clover-ant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
</excludes>
</filter>
</filters>
<minimizeJar>false</minimizeJar>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>org.apache.commons.lang3</pattern>
Expand Down
21 changes: 14 additions & 7 deletions clover-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@
</filter>
<filter>
<artifact>commons-collections:commons-collections</artifact>
<includes>
<include>org/apache/commons/collections/**</include>
</includes>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
Expand All @@ -371,6 +374,12 @@
</filter>
<filter>
<artifact>commons-lang:commons-lang</artifact>
<includes>
<!-- used by velocity -->
<include>org/apache/commons/lang/*</include>
<include>org/apache/commons/lang/builder/*</include>
<include>org/apache/commons/lang/text/*</include>
</includes>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
Expand Down Expand Up @@ -424,12 +433,6 @@
</includes>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<!--<exclude>org/jfree/chart/needle</exclude>
<exclude>org/jfree/chart/panel</exclude>
<exclude>org/jfree/chart/servlet</exclude>
<exclude>org/jfree/data/io</exclude>
<exclude>org/jfree/data/jdbc</exclude>
<exclude>org/jfree/data/xml</exclude>-->
</excludes>
</filter>
<filter>
Expand All @@ -442,6 +445,10 @@
</filter>
<filter>
<artifact>org.apache.velocity:velocity</artifact>
<includes>
<!-- keep all classes from velocity -->
<include>org/apache/velocity/**</include>
</includes>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/NOTICE</exclude>
Expand All @@ -452,7 +459,7 @@
</excludes>
</filter>
</filters>
<minimizeJar>false</minimizeJar>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>antlr</pattern>
Expand Down

0 comments on commit eca4204

Please sign in to comment.