commit b10c8b44174df77d0cb64196c01013a8511d4874
Author: Tulis <79586741+Tulis12@users.noreply.github.com>
Date: Sun Jul 27 13:35:39 2025 +0200
Initial commit 🚀
diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml
new file mode 100644
index 0000000..5d76cc6
--- /dev/null
+++ b/.gitea/workflows/build.yaml
@@ -0,0 +1,27 @@
+name: Build and publish release
+
+on:
+ push:
+ branches:
+ - main
+ schedule:
+ - cron: '*/15 * * * *'
+
+jobs:
+ build-docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+
+ - name: Setup Maven
+ run: |
+ version=$(curl -s https://hub.spigotmc.org/versions/ | \
+ grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.json' | \
+ sort -V | \
+ tail -n 1 | \
+ sed 's/\.json$//')
+
+ - name: Download Java 21
+ run: |
+ echo $version
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..7bc07ec
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Environment-dependent path to Maven home directory
+/mavenHomeManager.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..639900d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..99a1d0b
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d9587f9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,28 @@
+FROM eclipse-temurin:21-jdk AS builder
+
+ARG MINECRAFT_VERSION
+ARG ENABLE_FLAG=false
+
+RUN echo $MINECRAFT_VERSION
+
+RUN mkdir /code /buildTools
+RUN apt-get update && apt-get install -y maven openjdk-21-jdk wget git
+
+WORKDIR /buildTools
+RUN wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
+RUN java -jar BuildTools.jar --rev $MINECRAFT_VERSION
+RUN wget -O maven.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz
+
+WORKDIR /code
+
+FROM eclipse-temurin:21-alpine
+
+# Kopiowanie spigot-api repozytorium
+COPY --from=builder /root/.m2/repository/org/spigotmc/spigot-api /root/.m2/repository/org/spigotmc/spigot-api
+COPY --from=builder /buildTools/maven.tar.gz /root/maven.tar.gz
+
+RUN tar -xzf /root/maven.tar.gz -C /root/ && rm /root/maven.tar.gz
+
+RUN mkdir /code
+WORKDIR /code
+ENTRYPOINT ["/root/apache-maven-3.9.11/bin/mvn", "package"]
\ No newline at end of file
diff --git a/TuliBuilder.iml b/TuliBuilder.iml
new file mode 100644
index 0000000..9a5cfce
--- /dev/null
+++ b/TuliBuilder.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file