Skip to content

Demo of a spring boot application using mysql written in kotlin

Notifications You must be signed in to change notification settings

neogeogre/spring-boot-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hive suite

Install sdkman with curl -s "https://get.sdkman.io" | bash, then to autoload the .sdkmanrc, set sdkman_auto_env=true in $HOME/.sdkman/etc/config

Build all modules without tests:

./gradlew clean build -xtest

Build all modules with tests:

./gradlew clean build

Start a single spring app:

./gradlew clean app:bootRun

Some useful gradle plugins tasks

  • See dependency tree: ./gradlew dependencyReport
  • See dependency tree as interactive webpage: ./gradlew build -xtest --scan
  • Get modules versions: ./gradlew printSemver
  • Create a new version: ./gradlew createSemverTag -Psemver.stage=final -Psemver.scope=minor
  • Build snapshot docker images ./gradlew jibDockerBuild -Psemver.stage=snapshot -Psemver.tagPrefix=
  • Publish snapshot jars in nexus:
    ./gradlew publish -Psemver.stage=snapshot -Psemver.tagPrefix=

Stop all hidden gradle daemons:

./gradlew --stop

GitOps

Push all git tags:

git push --tags

delete a git tag:

TAG="0.2.0"
git tag -d $TAG
git push --delete origin $TAG

Liquibase

Generate changelog squash:

/home/geoffrey/Downloads/liquibase-4.23.0/liquibase generate-changelog \
  --classpath=$HOME/Downloads/h2-2.2.220.jar \
  --driver=org.h2.Driver \
  --url=jdbc:h2:file:/home/geoffrey/Desktop/git/hive-shopfloor-backend/data/hive \
  --username=sa \
  --password=password \
  --schemas=PUBLIC \
  --changeLogFile=changelog-h2.xml

Docker compose

To fix the old docker compose cli running in the gradle plugin do: https://stackoverflow.com/a/72187587

Stop all docker containers if they remained live by mistake:

docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)

About

Demo of a spring boot application using mysql written in kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages