Skip to content

Commit 44cf9fd

Browse files
committed
chore: Shade ConfigMe with proxies plugins
1 parent 5164b1e commit 44cf9fd

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

authme-bungee/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<dependency>
3131
<groupId>ch.jalu</groupId>
3232
<artifactId>configme</artifactId>
33+
<scope>compile</scope>
3334
</dependency>
3435
<dependency>
3536
<groupId>org.junit.jupiter</groupId>
@@ -66,6 +67,19 @@
6667
</resources>
6768

6869
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-shade-plugin</artifactId>
73+
<executions>
74+
<execution>
75+
<id>shade</id>
76+
<phase>package</phase>
77+
<goals>
78+
<goal>shade</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
6983
<plugin>
7084
<groupId>org.apache.maven.plugins</groupId>
7185
<artifactId>maven-resources-plugin</artifactId>
@@ -110,6 +124,24 @@
110124
</execution>
111125
</executions>
112126
</plugin>
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-antrun-plugin</artifactId>
130+
<executions>
131+
<execution>
132+
<id>remove-original-shaded-jar</id>
133+
<phase>package</phase>
134+
<goals>
135+
<goal>run</goal>
136+
</goals>
137+
<configuration>
138+
<target>
139+
<delete file="${project.build.directory}/original-${project.build.finalName}.jar" quiet="true"/>
140+
</target>
141+
</configuration>
142+
</execution>
143+
</executions>
144+
</plugin>
113145
<plugin>
114146
<groupId>org.apache.maven.plugins</groupId>
115147
<artifactId>maven-source-plugin</artifactId>

authme-velocity/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<dependency>
3030
<groupId>ch.jalu</groupId>
3131
<artifactId>configme</artifactId>
32+
<scope>compile</scope>
3233
</dependency>
3334
<dependency>
3435
<groupId>org.junit.jupiter</groupId>
@@ -66,6 +67,19 @@
6667
</resources>
6768

6869
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-shade-plugin</artifactId>
73+
<executions>
74+
<execution>
75+
<id>shade</id>
76+
<phase>package</phase>
77+
<goals>
78+
<goal>shade</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
6983
<plugin>
7084
<groupId>org.apache.maven.plugins</groupId>
7185
<artifactId>maven-resources-plugin</artifactId>
@@ -110,6 +124,24 @@
110124
</execution>
111125
</executions>
112126
</plugin>
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-antrun-plugin</artifactId>
130+
<executions>
131+
<execution>
132+
<id>remove-original-shaded-jar</id>
133+
<phase>package</phase>
134+
<goals>
135+
<goal>run</goal>
136+
</goals>
137+
<configuration>
138+
<target>
139+
<delete file="${project.build.directory}/original-${project.build.finalName}.jar" quiet="true"/>
140+
</target>
141+
</configuration>
142+
</execution>
143+
</executions>
144+
</plugin>
113145
<plugin>
114146
<groupId>org.apache.maven.plugins</groupId>
115147
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)