Skip to content

Commit 4a29d4f

Browse files
chore: added tooling for building
1 parent e902f8b commit 4a29d4f

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

pom.xml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,88 @@
1313
<maven.compiler.target>21</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16+
17+
<build>
18+
<finalName>StockMarketAlgorithm</finalName>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-shade-plugin</artifactId>
23+
<version>3.5.1</version>
24+
<executions>
25+
<execution>
26+
<phase>package</phase>
27+
<goals>
28+
<goal>shade</goal>
29+
</goals>
30+
<configuration>
31+
<transformers>
32+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
33+
<mainClass>net.swofty.builtin.TestAlgorithm</mainClass>
34+
</transformer>
35+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
36+
</transformers>
37+
<filters>
38+
<filter>
39+
<artifact>*:*</artifact>
40+
<excludes>
41+
<exclude>META-INF/*.SF</exclude>
42+
<exclude>META-INF/*.DSA</exclude>
43+
<exclude>META-INF/*.RSA</exclude>
44+
</excludes>
45+
</filter>
46+
</filters>
47+
<relocations>
48+
<relocation>
49+
<pattern>com.fasterxml</pattern>
50+
<shadedPattern>net.swofty.shade.com.fasterxml</shadedPattern>
51+
</relocation>
52+
<relocation>
53+
<pattern>org.jfree</pattern>
54+
<shadedPattern>net.swofty.shade.org.jfree</shadedPattern>
55+
</relocation>
56+
<relocation>
57+
<pattern>org.jetbrains</pattern>
58+
<shadedPattern>net.swofty.shade.org.jetbrains</shadedPattern>
59+
</relocation>
60+
</relocations>
61+
<createDependencyReducedPom>false</createDependencyReducedPom>
62+
<minimizeJar>true</minimizeJar>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
67+
<!-- Source plugin for including sources in the package -->
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-source-plugin</artifactId>
71+
<version>3.3.0</version>
72+
<executions>
73+
<execution>
74+
<id>attach-sources</id>
75+
<goals>
76+
<goal>jar-no-fork</goal>
77+
</goals>
78+
</execution>
79+
</executions>
80+
</plugin>
81+
<!-- Javadoc plugin for including documentation -->
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-javadoc-plugin</artifactId>
85+
<version>3.6.3</version>
86+
<executions>
87+
<execution>
88+
<id>attach-javadocs</id>
89+
<goals>
90+
<goal>jar</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
</plugins>
96+
</build>
97+
1698
<dependencies>
1799
<dependency>
18100
<groupId>org.projectlombok</groupId>

0 commit comments

Comments
 (0)