Skip to content

Commit

Permalink
DSND-2703: Update top level files (#121)
Browse files Browse the repository at this point in the history
* Top level files compared to filing-history-data-api and updated
  here accordingly.
  • Loading branch information
sthompsonCH authored Jul 11, 2024
1 parent 9d3ca3a commit c8f9cb8
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 526 deletions.
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
target/

# IntelliJ files
.idea/
*.iml

# VSCode
.vscode/
.vscode/

# Mac files
.DS_Store

# Maven
.mvn/
23 changes: 11 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ all: build
.PHONY: clean
clean:
mvn clean
rm -f $(artifact_name)-*.zip
rm -f $(artifact_name).jar
rm -f ./$(artifact_name)-*.zip
rm -f ./$(artifact_name).jar
rm -rf ./build-*
rm -f ./build.log
rm -rf ./build.log-*

.PHONY: security-check
security-check:
Expand All @@ -19,15 +19,9 @@ security-check:

.PHONY: build
build:
$(info Packaging version: $(version))
mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false
mvn package -DskipTests=true
$(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)
mvn package -Dmaven.test.skip=true
cp ./target/$(artifact_name)-$(version).jar ./$(artifact_name).jar

.PHONY: test
test: test-unit test-integration
Expand Down Expand Up @@ -58,6 +52,10 @@ endif
cd $(tmpdir); zip -r ../$(artifact_name)-$(version).zip *
rm -rf $(tmpdir)

.PHONY: build-container
build-container: build
docker build .

.PHONY: dist
dist: clean build package coverage

Expand All @@ -71,4 +69,5 @@ sonar:

.PHONY: sonar-pr-analysis
sonar-pr-analysis:
mvn sonar:sonar -P sonar-pr-analysis
mvn verify -Dskip.unit.tests=true -Dskip.integration.tests=true
#mvn sonar:sonar -P sonar-pr-analysis #temporary until sonar available for Java 21
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# psc-data-api
Handles CRUD functions for PSC's
Handles CRUD functions for PSCs

# Requirements

- [Java 11](https://www.oracle.com/uk/java/technologies/javase/jdk11-archive-downloads.html)
- [Java 21](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html)
- [Maven](https://maven.apache.org/download.cgi)
- [Git](https://git-scm.com/downloads)
287 changes: 0 additions & 287 deletions mvnw

This file was deleted.

Loading

0 comments on commit c8f9cb8

Please sign in to comment.