Skip to content

Commit

Permalink
Version everything!
Browse files Browse the repository at this point in the history
  • Loading branch information
ImperatorStorm committed Jan 21, 2023
1 parent c50d0de commit cc97a1a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions publishMappings.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env sh
rm -f client.pom server.pom
cp template-mappings.pom client.pom
cp template-mappings.pom server.pom
sed -i 's/template_pom/client/' client.pom
sed -i 's/template_pom/server/' server.pom
sed -i 's/>git</>'$(git rev-parse HEAD)'</' server.pom
sed -i 's/>git</>'$(git rev-parse HEAD)'</' client.pom
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=client.pom -Dfile=build/client-$(git rev-parse HEAD).jar
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=server.pom -Dfile=build/server-$(git rev-parse HEAD).jar
rm -f client*.pom server*.pom
pom_version=$(git rev-parse HEAD)
cp template-mappings.pom client-$pom_version.pom
cp template-mappings.pom server-$pom_version.pom
sed -i 's/template_pom/client/' client-$pom_version.pom
sed -i 's/template_pom/server/' server-$pom_version.pom
sed -i 's/>git</>'$(git rev-parse HEAD)'</' server-$pom_version.pom
sed -i 's/>git</>'$(git rev-parse HEAD)'</' client-$pom_version.pom
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=client-$pom_version.pom -Dfile=build/client-$pom_version.jar
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=server-$pom_version.pom -Dfile=build/server-$pom_version.jar

0 comments on commit cc97a1a

Please sign in to comment.