Skip to content

Latest commit

 

History

History
115 lines (80 loc) · 2.49 KB

DEVELOPMENT.md

File metadata and controls

115 lines (80 loc) · 2.49 KB

development

versions maven plugin

UNIX: increment current version

./mvnw build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} ; ./mvnw -Pversions

Windows: increment current version

mvnw build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}
mvnw -Pversions

process versions substitution

./mvnw -Pversions

set specific version

./mvnw versions:set -DnewVersion=4.3.40

maven version management

./mvnw versions:display-property-updates

run with gradle

./gradlew assemble
./gradlew postgresUp
./gradlew :m:a:f-i-s:bootRun
./gradlew :m:a:f-s:bootRun

# cleanup
./gradlew composeDown
./gradlew --stop

gradle testing

./gradlew clean test

quick boot all with docker

./gradlew clean assemble allUp -Pdebug
http -a user:password :80

run all in docker manually

./gradlew clean assemble
#docker-compose -f ./modules/docker/all/docker-compose.yml --project-name=docker up --build --force-recreate
#docker-compose -f ./modules/docker/all/docker-compose.yml -p docker up --build --force-recreate
docker-compose -f ./modules/docker/all/docker-compose.yml up --build --force-recreate

cleanup and remove everything

./gradlew composeDown postgresDown allDown clean clear

NOTE: if you feel that changes take no effect, clean docker

# remove containers
for container in $(docker ps -qaf health=healthy) ; do docker rm -v -f $container ; done

# remove volumes
for volume in $(docker volume ls -q) ; do docker volume rm -f $volume ; done

# remove images
for image in $(docker images -qa) ; do docker rmi -f $image ; done

# or cleanup everything in docker
docker system prune -af --volumes

jacoco code coverage

#./gradlew build
# or:
./gradlew check jacocoTestReport jacocoTestCoverageVerification

open ./build/jacoco/modules-apps-file-server/index.html

publish release with maven

./mvnw