From 86bf3ffb1585b20b8ddeeb6715d0228dac8ab049 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Mon, 17 Feb 2025 10:18:08 +0100 Subject: [PATCH] build: Add releaser plugin --- pom.xml | 128 +++++++++++++++++++++++++++++++++ src/main/assembly/assembly.xml | 18 +++++ 2 files changed, 146 insertions(+) create mode 100644 src/main/assembly/assembly.xml diff --git a/pom.xml b/pom.xml index abaae08..e4b894d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,6 +5,8 @@ mstats 0.0.1-SNAPSHOT + mStats Quarkus server + 17 @@ -19,6 +21,10 @@ 3.5.2 true + + + + ${project.build.directory}/distributions @@ -137,7 +143,17 @@ + + + + + + kr.motd.maven + os-maven-plugin + 1.7.1 + + @@ -153,5 +169,117 @@ true + + + dist + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + false + false + ${project.artifactId}-${project.version}-${os.detected.classifier} + ${distribution.directory} + ${project.build.directory}/assembly/work + + src/main/assembly/assembly.xml + + + + + make-distribution + package + + single + + + + + + + + + dist-windows + + + windows + + + + .exe + + + + + release + + + + org.jreleaser + jreleaser-maven-plugin + 1.6.0 + + + + + + https://git.m724.eu/Minecon724/mStats + https://git.m724.eu/Minecon724/mStats + + GPL-3.0 + mStats contributors + © 2025 mStats contributors + + + + https://git.m724.eu + git.m724.eu + Minecon724 + + true + + + ALWAYS + conventional-commits + + + + + + + ALWAYS + git.m724.eu + Minecon724 + + + + + + BINARY + + + ${distribution.directory}/{{distributionName}}-{{projectVersion}}-linux-x86_64.tar.gz + linux-x86_64 + + + ${distribution.directory}/{{distributionName}}-{{projectVersion}}-windows-x86_64.zip + windows-x86_64 + + + ${distribution.directory}/{{distributionName}}-{{projectVersion}}-osx-x86_64.zip + osx-x86_64 + + + + + + + + + + diff --git a/src/main/assembly/assembly.xml b/src/main/assembly/assembly.xml new file mode 100644 index 0000000..81188fd --- /dev/null +++ b/src/main/assembly/assembly.xml @@ -0,0 +1,18 @@ + + dist + + tar.gz + zip + dir + + + + ${project.build.directory}/${project.artifactId}-${project.version}-runner${executable-suffix} + ./bin + ${project.artifactId}${executable-suffix} + + + \ No newline at end of file