Created
January 23, 2018 17:20
-
-
Save andrewmunro/2665483aa387b93bb5d3421ca32b86c3 to your computer and use it in GitHub Desktop.
Maven Spigot Plugin Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exists to fully update the git repo that you are sitting in... | |
git submodule update --init --recursive | |
docker-compose up -d | |
if [ -z "$1" ]; then | |
docker-compose run plugin-builder bash -c "find . -name 'pom.xml' -exec sh -c 'mvn install -f \"{}\"' \;" | |
else | |
docker-compose run plugin-builder bash -c "mvn install -f $1" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
plugin-builder: | |
image: maven:alpine | |
command: tail -f /dev/null | |
working_dir: /build | |
volumes: | |
- "mvn_data:/root/.m2" | |
- "./:/build" | |
- "./deps/spigot-1.12.2.jar:/root/.m2/repository/org/spigotmc/spigot/1.12-R0.1-SNAPSHOT/spigot-1.12-R0.1-SNAPSHOT.jar" | |
- "./deps/spigot-api-1.12-R0.1-SNAPSHOT.jar:/root/.m2/repository/org/spigotmc/spigot-api/1.12-R0.1-SNAPSHOT/spigot-api-1.12-R0.1-SNAPSHOT.jar" | |
- "./deps/CivModCore-1.6.2.jar:/root/.m2/repository/vg/civcraft/mc/civmodcore/CivModCore/1.6.2/CivModCore-1.6.2.jar" | |
volumes: | |
mvn_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment