Skip to content

Commit 7015473

Browse files
author
Obydux
committed
Fix building and add GitHub Actions
1 parent 9c95e22 commit 7015473

5 files changed

Lines changed: 122 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build ExploitFixer
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up JDK 8
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '8'
16+
distribution: 'temurin'
17+
cache: maven
18+
- name: Build ExploitFixer
19+
run: mvn clean install
20+
- name: Upload artifact
21+
uses: actions/upload-artifact@v3
22+
with:
23+
name: ExploitFixer
24+
path: ./target/ExploitFixer.jar

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
.factorypath
55
.classpath
66
/target
7-
pom.xml

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ You can download the prebuilt jar binaries in the link below.
1313
Download a copy of ExploitFixer. [MC-Market](https://builtbybit.com/resources/26463/)
1414

1515
Install in your Spigot/Paper plugins folder.
16+
17+
## How To (Compiling From Source)
18+
19+
To compile ExploitFixer, you need [JDK8](https://adoptopenjdk.net/releases.html), [maven](https://maven.apache.org/download.cgi), and an internet connection.
20+
21+
Clone this repo, run ```mvn clean install``` from *bash*.

pom.xml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<project>
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<groupId>dev._2lstudios</groupId>
5+
<artifactId>ExploitFixer</artifactId>
6+
<packaging>jar</packaging>
7+
8+
<name>ExploitFixer</name>
9+
<description>Advanced anti-exploit security plugin for Spigot servers.</description>
10+
<version>2.2.8</version>
11+
<url>https://www.spigotmc.org/resources/62842/</url>
12+
13+
<properties>
14+
<author>2LS</author>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<repositories>
19+
<repository>
20+
<id>spigot-repo</id>
21+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
22+
</repository>
23+
<repository>
24+
<id>2lstudios</id>
25+
<url>https://ci.2lstudios.dev/plugin/repository/everything/</url>
26+
</repository>
27+
<repository>
28+
<id>codemc</id>
29+
<url>https://repo.codemc.io/repository/maven-public/</url>
30+
</repository>
31+
</repositories>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>org.spigotmc</groupId>
36+
<artifactId>spigot-api</artifactId>
37+
<version>1.19-R0.1-SNAPSHOT</version>
38+
<scope>provided</scope>
39+
</dependency>
40+
<dependency>
41+
<groupId>dev._2lstudios</groupId>
42+
<artifactId>HamsterAPI</artifactId>
43+
<version>0.2.3</version>
44+
<scope>system</scope>
45+
<systemPath>${project.basedir}/src/main/resources/HamsterAPI.jar</systemPath>
46+
</dependency>
47+
<dependency>
48+
<groupId>com.github.steveice10</groupId>
49+
<artifactId>opennbt</artifactId>
50+
<version>1.5</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>io.netty</groupId>
54+
<artifactId>netty-all</artifactId>
55+
<version>4.1.94.Final</version>
56+
</dependency>
57+
</dependencies>
58+
59+
<build>
60+
<finalName>${artifactId}</finalName>
61+
<sourceDirectory>src/main/java</sourceDirectory>
62+
<defaultGoal>clean install</defaultGoal>
63+
<resources>
64+
<resource>
65+
<directory>src/main/resources</directory>
66+
<filtering>true</filtering>
67+
<includes>
68+
<include>plugin.yml</include>
69+
<include>bungee.yml</include>
70+
</includes>
71+
</resource>
72+
<resource>
73+
<directory>src/main/resources</directory>
74+
<excludes>
75+
<exclude>plugin.yml</exclude>
76+
<exclude>bungee.yml</exclude>
77+
</excludes>
78+
</resource>
79+
</resources>
80+
81+
<plugins>
82+
<plugin>
83+
<artifactId>maven-compiler-plugin</artifactId>
84+
<version>3.8.1</version>
85+
<configuration>
86+
<source>1.8</source>
87+
<target>1.8</target>
88+
</configuration>
89+
</plugin>
90+
</plugins>
91+
</build>
92+
</project>

src/main/resources/HamsterAPI.jar

40.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)