diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e934836
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,41 @@
+pipeline {
+ agent any
+ tools {
+ maven 'Maven 3'
+ jdk 'Java 8'
+ }
+ options {
+ buildDiscarder(logRotator(artifactNumToKeepStr: '5'))
+ }
+ stages {
+ stage ('Build') {
+ steps {
+ sh 'git submodule update --init --recursive'
+ sh 'mvn clean package'
+ }
+ post {
+ success {
+ archiveArtifacts artifacts: 'target/*.jar', excludes: 'target/original-*.jar', fingerprint: true
+ }
+ }
+ }
+
+ stage ('Deploy') {
+ when {
+ branch "master"
+ }
+ steps {
+ sh 'mvn javadoc:jar source:jar deploy -DskipTests'
+ }
+ }
+ }
+
+ post {
+ always {
+ deleteDir()
+ withCredentials([string(credentialsId: 'geyser-discord-webhook', variable: 'DISCORD_WEBHOOK')]) {
+ discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}](${env.BUILD_URL})\n\n[**Artifacts on Jenkins**](https://ci.nukkitx.com/job/GeyserConnect)", footer: 'NukkitX Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK
+ }
+ }
+ }
+}
diff --git a/pom.xml b/pom.xml
index 9c981cb..2122900 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,6 +20,17 @@
1.8
+
+ GeyserMC
+ https://github.com/GeyserMC/GeyserConnect/blob/master/pom.xml
+
+
+
+ scm:git:https://github.com/GeyserMC/GeyserConnect.git
+ scm:git:git@github.com:GeyserMC/GeyserConnect.git
+ https://github.com/GeyserMC/GeyserConnect
+
+
jitpack.io
@@ -28,13 +39,38 @@
nukkitx-release-repo
https://repo.nukkitx.com/maven-releases/
+
+ true
+
+
+ false
+
nukkitx-snapshot-repo
https://repo.nukkitx.com/maven-snapshots/
+
+ false
+
+
+ true
+
+
+
+ releases
+ nukkitx-releases
+ https://repo.nukkitx.com/maven-releases
+
+
+ snapshots
+ nukkitx-snapshots
+ https://repo.nukkitx.com/maven-snapshots
+
+
+
org.projectlombok