Skip to content

Commit 5e54b8b

Browse files
committed
Update build
1 parent 0d818dd commit 5e54b8b

2 files changed

Lines changed: 15 additions & 46 deletions

File tree

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/upload-artifact@v3.1.2
2626
with:
2727
name: Download
28-
path: ./target/AuthMe-5.6.0-FORK-Spigot-Universal.jar
28+
path: ./target/AuthMe-5.6.0-FORK-Universal.jar
2929
runtime-test:
3030
name: Plugin Runtime Test
3131
needs: [Build]

pom.xml

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -82,54 +82,11 @@
8282
<pluginDescription.authors>sgdc3, games647, Hex3l, krusic22</pluginDescription.authors>
8383
</properties>
8484

85-
<!-- Jenkins profile -->
86-
<profiles>
87-
<!-- Set the buildNumber using the jenkins env. variable -->
88-
<profile>
89-
<id>jenkins</id>
90-
<activation>
91-
<property>
92-
<name>env.BUILD_NUMBER</name>
93-
</property>
94-
</activation>
95-
<properties>
96-
<project.buildNumber>${env.BUILD_NUMBER}</project.buildNumber>
97-
</properties>
98-
</profile>
99-
<!-- Skip long hash tests, reduce the test time of 20-30 seconds -->
100-
<profile>
101-
<id>skipLongHashTests</id>
102-
<activation>
103-
<property>
104-
<name>skipLongHashTests</name>
105-
</property>
106-
</activation>
107-
<properties>
108-
<project.skipExtendedHashTests>true</project.skipExtendedHashTests>
109-
</properties>
110-
</profile>
111-
<!-- Skip javadoc generation for faster local build -->
112-
<profile>
113-
<id>skipJavadocGeneration</id>
114-
<build>
115-
<plugins>
116-
<plugin>
117-
<groupId>org.apache.maven.plugins</groupId>
118-
<artifactId>maven-javadoc-plugin</artifactId>
119-
<configuration>
120-
<skip>true</skip>
121-
</configuration>
122-
</plugin>
123-
</plugins>
124-
</build>
125-
</profile>
126-
</profiles>
12785

12886
<build>
12987
<defaultGoal>clean package</defaultGoal>
13088
<!-- Little hack to make the shade plugin output a file with the right name -->
13189
<finalName>${project.finalNameBase}-noshade</finalName>
132-
13390
<resources>
13491
<resource>
13592
<directory>.</directory>
@@ -308,6 +265,7 @@
308265
<goal>shade</goal>
309266
</goals>
310267
<configuration>
268+
<finalName>${project.finalNameBase}-Lite</finalName>
311269
<artifactSet>
312270
<excludes>
313271
<!-- Guava -->
@@ -318,7 +276,7 @@
318276
<exclude>com.google.j2objc:j2objc-annotations</exclude>
319277
<!-- Gson -->
320278
<exclude>com.google.code.gson:gson</exclude>
321-
</excludes>
279+
</excludes>
322280
</artifactSet>
323281
<relocations>
324282
<relocation>
@@ -366,6 +324,17 @@
366324
<shadedPattern>fr.xephi.authme.libs.com.github.benmanes.caffeine</shadedPattern>
367325
</relocation>
368326
</relocations>
327+
<filters>
328+
<filter>
329+
<artifact>*:*</artifact>
330+
<excludes>
331+
<exclude>GeoLite2-Country.mmdb</exclude>
332+
<exclude>META-INF/*.SF</exclude>
333+
<exclude>META-INF/*.DSA</exclude>
334+
<exclude>META-INF/*.RSA</exclude>
335+
</excludes>
336+
</filter>
337+
</filters>
369338
</configuration>
370339
</execution>
371340
<execution>
@@ -375,7 +344,7 @@
375344
<goal>shade</goal>
376345
</goals>
377346
<configuration>
378-
<finalName>${project.finalNameBase}-Spigot-Universal</finalName>
347+
<finalName>${project.finalNameBase}-Universal</finalName>
379348
<relocations>
380349
<relocation>
381350
<pattern>com.google.common</pattern>

0 commit comments

Comments
 (0)