Skip to content

Commit

Permalink
Fix building and add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Obydux committed Jun 22, 2023
1 parent 9c95e22 commit 7015473
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build ExploitFixer

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build ExploitFixer
run: mvn clean install
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ExploitFixer
path: ./target/ExploitFixer.jar
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
.factorypath
.classpath
/target
pom.xml
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ You can download the prebuilt jar binaries in the link below.
Download a copy of ExploitFixer. [MC-Market](https://builtbybit.com/resources/26463/)

Install in your Spigot/Paper plugins folder.

## How To (Compiling From Source)

To compile ExploitFixer, you need [JDK8](https://adoptopenjdk.net/releases.html), [maven](https://maven.apache.org/download.cgi), and an internet connection.

Clone this repo, run ```mvn clean install``` from *bash*.
92 changes: 92 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<project>
<modelVersion>4.0.0</modelVersion>

<groupId>dev._2lstudios</groupId>
<artifactId>ExploitFixer</artifactId>
<packaging>jar</packaging>

<name>ExploitFixer</name>
<description>Advanced anti-exploit security plugin for Spigot servers.</description>
<version>2.2.8</version>
<url>https://www.spigotmc.org/resources/62842/</url>

<properties>
<author>2LS</author>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>2lstudios</id>
<url>https://ci.2lstudios.dev/plugin/repository/everything/</url>
</repository>
<repository>
<id>codemc</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev._2lstudios</groupId>
<artifactId>HamsterAPI</artifactId>
<version>0.2.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/HamsterAPI.jar</systemPath>
</dependency>
<dependency>
<groupId>com.github.steveice10</groupId>
<artifactId>opennbt</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.94.Final</version>
</dependency>
</dependencies>

<build>
<finalName>${artifactId}</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
<defaultGoal>clean install</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>plugin.yml</include>
<include>bungee.yml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>plugin.yml</exclude>
<exclude>bungee.yml</exclude>
</excludes>
</resource>
</resources>

<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Binary file added src/main/resources/HamsterAPI.jar
Binary file not shown.

0 comments on commit 7015473

Please sign in to comment.