|
16 | 16 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
17 | 17 | </properties> |
18 | 18 |
|
19 | | - <build> |
20 | | - <finalName>${project.artifactId}</finalName> |
21 | | - <sourceDirectory>src/main/java</sourceDirectory> |
22 | | - <testSourceDirectory>src/test/java</testSourceDirectory> |
23 | | - <defaultGoal>clean package test</defaultGoal> |
24 | | - <plugins> |
25 | | - <plugin> |
26 | | - <groupId>org.apache.maven.plugins</groupId> |
27 | | - <artifactId>maven-compiler-plugin</artifactId> |
28 | | - <version>3.7.0</version> |
29 | | - <configuration> |
30 | | - <source>${java.version}</source> |
31 | | - <target>${java.version}</target> |
32 | | - </configuration> |
33 | | - </plugin> |
34 | | - <plugin> |
35 | | - <groupId>org.apache.maven.plugins</groupId> |
36 | | - <artifactId>maven-shade-plugin</artifactId> |
37 | | - <version>3.1.0</version> |
38 | | - <executions> |
39 | | - <execution> |
40 | | - <phase>package</phase> |
41 | | - <goals> |
42 | | - <goal>shade</goal> |
43 | | - </goals> |
44 | | - <configuration> |
45 | | - <createDependencyReducedPom>true</createDependencyReducedPom> |
46 | | - <minimizeJar>false</minimizeJar> |
47 | | - <relocations> |
48 | | - <relocation> |
49 | | - <pattern>com.google.gson</pattern> |
50 | | - <shadedPattern>xyz.theprogramsrc.supercoreapi.google.gson</shadedPattern> |
51 | | - </relocation> |
52 | | - <relocation> |
53 | | - <pattern>org.apache.commons.codec</pattern> |
54 | | - <shadedPattern>xyz.theprogramsrc.supercoreapi.apache.commons.codec</shadedPattern> |
55 | | - </relocation> |
56 | | - <relocation> |
57 | | - <pattern>org.apache.commons.io</pattern> |
58 | | - <shadedPattern>xyz.theprogramsrc.supercoreapi.apache.commons.io</shadedPattern> |
59 | | - </relocation> |
60 | | - </relocations> |
61 | | - </configuration> |
62 | | - </execution> |
63 | | - </executions> |
64 | | - </plugin> |
65 | | - <!-- Unit Testing --> |
66 | | - <plugin> |
67 | | - <groupId>org.apache.maven.plugins</groupId> |
68 | | - <artifactId>maven-surefire-plugin</artifactId> |
69 | | - <version>2.22.1</version> |
70 | | - </plugin> |
71 | | - </plugins> |
72 | | - <resources> |
73 | | - <resource> |
74 | | - <directory>src/main/resources</directory> |
75 | | - <filtering>true</filtering> |
76 | | - </resource> |
77 | | - </resources> |
78 | | - </build> |
79 | | - |
80 | 19 | <distributionManagement> |
81 | 20 | <repository> |
82 | 21 | <id>theprogramsrc-releases</id> |
|
216 | 155 | <scope>test</scope> |
217 | 156 | </dependency> |
218 | 157 | </dependencies> |
| 158 | + |
| 159 | + <build> |
| 160 | + <finalName>${project.artifactId}</finalName> |
| 161 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 162 | + <testSourceDirectory>src/test/java</testSourceDirectory> |
| 163 | + <defaultGoal>clean package test</defaultGoal> |
| 164 | + <plugins> |
| 165 | + <plugin> |
| 166 | + <groupId>org.apache.maven.plugins</groupId> |
| 167 | + <artifactId>maven-compiler-plugin</artifactId> |
| 168 | + <version>3.8.1</version> |
| 169 | + <configuration> |
| 170 | + <source>${java.version}</source> |
| 171 | + <target>${java.version}</target> |
| 172 | + </configuration> |
| 173 | + </plugin> |
| 174 | + <plugin> |
| 175 | + <groupId>org.apache.maven.plugins</groupId> |
| 176 | + <artifactId>maven-shade-plugin</artifactId> |
| 177 | + <version>3.1.0</version> |
| 178 | + <executions> |
| 179 | + <execution> |
| 180 | + <phase>package</phase> |
| 181 | + <goals> |
| 182 | + <goal>shade</goal> |
| 183 | + </goals> |
| 184 | + <configuration> |
| 185 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 186 | + <minimizeJar>false</minimizeJar> |
| 187 | + <relocations> |
| 188 | + <relocation> |
| 189 | + <pattern>com.google.gson</pattern> |
| 190 | + <shadedPattern>xyz.theprogramsrc.supercoreapi.google.gson</shadedPattern> |
| 191 | + </relocation> |
| 192 | + <relocation> |
| 193 | + <pattern>org.apache.commons.codec</pattern> |
| 194 | + <shadedPattern>xyz.theprogramsrc.supercoreapi.apache.commons.codec</shadedPattern> |
| 195 | + </relocation> |
| 196 | + <relocation> |
| 197 | + <pattern>org.apache.commons.io</pattern> |
| 198 | + <shadedPattern>xyz.theprogramsrc.supercoreapi.apache.commons.io</shadedPattern> |
| 199 | + </relocation> |
| 200 | + </relocations> |
| 201 | + </configuration> |
| 202 | + </execution> |
| 203 | + </executions> |
| 204 | + </plugin> |
| 205 | + <!-- Unit Testing --> |
| 206 | + <plugin> |
| 207 | + <groupId>org.apache.maven.plugins</groupId> |
| 208 | + <artifactId>maven-surefire-plugin</artifactId> |
| 209 | + <version>2.22.1</version> |
| 210 | + </plugin> |
| 211 | + </plugins> |
| 212 | + <resources> |
| 213 | + <resource> |
| 214 | + <directory>src/main/resources</directory> |
| 215 | + <filtering>true</filtering> |
| 216 | + </resource> |
| 217 | + </resources> |
| 218 | + </build> |
219 | 219 | </project> |
0 commit comments