Skip to content

Commit

Permalink
Merge pull request #11 from companieshouse/feature/add-copy-routes-to…
Browse files Browse the repository at this point in the history
…-build

Add missing lines to makefile build
  • Loading branch information
EmrysRoberts authored Apr 20, 2023
2 parents db4cf58 + 4c0417d commit f531a52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ security-check:

.PHONY: build
build:
$(info Packaging version: $(version))
mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false
mvn package -DskipTests=true
cp ./target/$(artifact_name)-$(version).jar ./$(artifact_name).jar
$(eval tmpdir:=$(shell mktemp -d build-XXXXXXXXXX))
cp ./start.sh $(tmpdir)
cp ./routes.yaml $(tmpdir)
cp ./target/$(artifact_name)-$(version).jar $(tmpdir)/$(artifact_name).jar
cd $(tmpdir); zip -r ../$(artifact_name)-$(version).zip *
rm -rf $(tmpdir)

.PHONY: test
test: test-unit
Expand Down

0 comments on commit f531a52

Please sign in to comment.