|
45 | 45 |
|
46 | 46 | <compiler.plugin.version>3.5.1</compiler.plugin.version>
|
47 | 47 | <resources.plugin.version>2.7</resources.plugin.version>
|
| 48 | + <war.plugin.version>2.6</war.plugin.version> |
48 | 49 | <native2ascii.plugin.version>1.0-beta-1</native2ascii.plugin.version>
|
49 | 50 | <surefire.plugin.version>2.19.1</surefire.plugin.version>
|
50 | 51 | <gmaven.plugin.version>1.4</gmaven.plugin.version>
|
51 | 52 | <gmaven.runtime.plugin.version>1.5</gmaven.runtime.plugin.version>
|
52 | 53 | <jasmine.plugin.version>2.1</jasmine.plugin.version>
|
| 54 | + <minify.plugin.version>1.7.4</minify.plugin.version> |
53 | 55 | <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
|
54 | 56 | <license.plugin.version>1.9.0</license.plugin.version>
|
55 | 57 | <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
|
|
539 | 541 | <version>${resources.plugin.version}</version>
|
540 | 542 | </plugin>
|
541 | 543 |
|
| 544 | + <plugin> |
| 545 | + <groupId>org.apache.maven.plugins</groupId> |
| 546 | + <artifactId>maven-war-plugin</artifactId> |
| 547 | + <version>${war.plugin.version}</version> |
| 548 | + <configuration> |
| 549 | + <!-- Exclude non-minified versions of resources --> |
| 550 | + <warSourceExcludes>WEB-INF/static/styles/main.css</warSourceExcludes> |
| 551 | + </configuration> |
| 552 | + </plugin> |
| 553 | + |
542 | 554 | <plugin>
|
543 | 555 | <groupId>org.codehaus.mojo</groupId>
|
544 | 556 | <artifactId>native2ascii-maven-plugin</artifactId>
|
|
604 | 616 | </configuration>
|
605 | 617 | </plugin>
|
606 | 618 |
|
| 619 | + <plugin> |
| 620 | + <groupId>com.samaxes.maven</groupId> |
| 621 | + <artifactId>minify-maven-plugin</artifactId> |
| 622 | + <version>${minify.plugin.version}</version> |
| 623 | + <configuration> |
| 624 | + <!-- Put minified versions to the same directory so that spring-boot:run can pick it --> |
| 625 | + <webappSourceDir>${basedir}/src/main/webapp</webappSourceDir> |
| 626 | + <webappTargetDir>${basedir}/src/main/webapp</webappTargetDir> |
| 627 | + <cssSourceDir>WEB-INF/static/styles</cssSourceDir> |
| 628 | + <cssSourceFiles> |
| 629 | + <cssSourceFile>main.css</cssSourceFile> |
| 630 | + </cssSourceFiles> |
| 631 | + <skipMerge>true</skipMerge> |
| 632 | + </configuration> |
| 633 | + <executions> |
| 634 | + <execution> |
| 635 | + <id>minify-resources</id> |
| 636 | + <goals> |
| 637 | + <goal>minify</goal> |
| 638 | + </goals> |
| 639 | + </execution> |
| 640 | + </executions> |
| 641 | + </plugin> |
| 642 | + |
607 | 643 | <plugin>
|
608 | 644 | <groupId>org.apache.maven.plugins</groupId>
|
609 | 645 | <artifactId>maven-failsafe-plugin</artifactId>
|
|
0 commit comments