Remove left-overs from Maven.

This commit is contained in:
Jim C K Flaten committed 2025-07-19 14:42:57 +02:00
1 parent c1e0fd8de8
commit 5ae9ae65f8
5 files changed
+2 -51

No files matched your search

-5
View File
@@ -1,5 +0,0 @@
# Should match the UID and GID of the project files.
# With Docker this is typically your own UID and GID.
# With Podman this is probably root's UID and GID..
UID=1000
GID=1000
-9
View File
@@ -27,19 +27,10 @@ replay_pid*
/.idea
/*.iml
# Maven output
/dependency-reduced-pom.xml
/target
/jars
/.m2
# Gradle output
/.gradle
/build
# Env vars
.env
# Test server
/server
/folia
-20
View File
@@ -1,20 +0,0 @@
FROM maven:3.9.9-eclipse-temurin-22
# Default to first user on Debian based distros.
# Pass in your own UID and GID as environment variables to override.
ARG UID=1000
ARG GID=1000
# Create a user with the same UID and GID as the host user if they don't already exist.
RUN getent group $GID || groupadd -g $GID app
RUN getent passwd $UID || useradd -m -u $UID -g $GID -s /bin/bash -d /app app
# If an alternate user was created, let it sudo.
RUN ( getent passwd app > /dev/null && echo 'app ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers > /dev/null ) || true
# Drop privileges.
USER $UID:$GID
WORKDIR /app
ENTRYPOINT [ "mvn", "-Dmaven.repo.local=/app/.m2" ]
+2 -6
View File
@@ -10,13 +10,9 @@ Please see [our wiki](https://gitlab.com/distant-horizons-team/distant-horizons-
## Building
### Dockerized
This project uses Gradle.
If you have Docker; run `docker compose up` to build the project inside a container. See `.env.example` if you need to adjust the user/group of the build process.
### Using Maven directly
Just run `mvn` in the project directory to compile and package a new JAR.
`gradlew clean build`
## Contribution
-11
View File
@@ -1,11 +0,0 @@
services:
maven:
build:
context: .
args:
UID: ${UID}
GID: ${GID}
volumes:
- ./:/app