Skip to content

Commit

Permalink
Merge pull request #6 from companieshouse/skeleton-app-setup
Browse files Browse the repository at this point in the history
fixed indentations
  • Loading branch information
JpLuuCH authored Mar 9, 2023
2 parents 0d1af37 + 59cb425 commit f8f4fd6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ all: build
.PHONY: clean
clean:
mvn clean
rm -f $(artifact_name)-*.zip
rm -f $(artifact_name).jar
rm -rf ./build-*
rm -f ./build.log
rm -f $(artifact_name)-*.zip
rm -f $(artifact_name).jar
rm -rf ./build-*
rm -f ./build.log

.PHONY: build
build:
mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false
mvn package -DskipTests=true
cp ./target/$(artifact_name)-$(version).jar ./$(artifact_name).jar
mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false
mvn package -DskipTests=true
cp ./target/$(artifact_name)-$(version).jar ./$(artifact_name).jar

.PHONY: test
test: test-unit
Expand All @@ -33,10 +33,10 @@ endif
$(info Packaging version: $(version))
mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false
mvn package -DskipTests=true
$(eval tmpdir:=$(shell mktemp -d build-XXXXXXXXXX))
cp ./target/$(artifact_name)-$(version).jar $(tmpdir)/$(artifact_name).jar
cd $(tmpdir); zip -r ../$(artifact_name)-$(version).zip *
rm -rf $(tmpdir)
$(eval tmpdir:=$(shell mktemp -d build-XXXXXXXXXX))
cp ./target/$(artifact_name)-$(version).jar $(tmpdir)/$(artifact_name).jar
cd $(tmpdir); zip -r ../$(artifact_name)-$(version).zip *
rm -rf $(tmpdir)

.PHONY: dist
dist: clean package
Expand Down

0 comments on commit f8f4fd6

Please sign in to comment.