https://github.com/ak-git/simpleapp
Simple Java "Hello World" Application with Gradle and Docker support
https://github.com/ak-git/simpleapp
docker docker-compose gradle gradle-java hello-world java java22 javamodulesystem jetbrains-idea renovate renovatebot
Last synced: 2 months ago
JSON representation
Simple Java "Hello World" Application with Gradle and Docker support
- Host: GitHub
- URL: https://github.com/ak-git/simpleapp
- Owner: ak-git
- License: unlicense
- Created: 2022-06-25T18:49:46.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T16:52:29.000Z (6 months ago)
- Last Synced: 2024-10-22T05:56:06.377Z (6 months ago)
- Topics: docker, docker-compose, gradle, gradle-java, hello-world, java, java22, javamodulesystem, jetbrains-idea, renovate, renovatebot
- Language: Java
- Homepage: https://hub.docker.com/r/a002k/simple-app
- Size: 328 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Java "Hello World" Application with Gradle and Docker support
## Run using Gradle
```shell
./gradlew run -t
```## [Semantic versioning](https://zoltanaltfatter.com/2020/04/10/semantic-versioning-with-jgitver/)
### Plugin [fr.brouillard.oss.gradle.jgitver](https://github.com/jgitver/gradle-jgitver-plugin)
```shell
./gradlew version
``````shell
./gradlew version | grep Version | awk '{ print $2 }'
```### Update version and add git tag
```shell
git tag 2025.01
```## Update dependencies
### Plugin [com.github.ben-manes.versions](https://github.com/ben-manes/gradle-versions-plugin)
```shell
./gradlew dependencyUpdates
```## Check dependencies
### Plugin [dependency-analysis-gradle-plugin](https://github.com/autonomousapps/dependency-analysis-gradle-plugin)
```shell
./gradlew buildHealth
```## Run docker image
```shell
docker run --rm a002k/simple-app
``````shell
docker run -d --name simple-app --rm a002k/simple-app
```- ```-i``` Keep STDIN open even if not attached
- ```--rm``` Remove container after stop
- ```-d``` Detach mode, Run container in background and print container IDand follow ```-f``` logs
```shell
docker logs -f simple-app
```to stop
```shell
docker stop simple-app
```## Run docker image as docker-compose
```shell
docker compose run -d --name simple-app --rm simple-app
```and follow ```-f``` logs
```shell
docker compose logs -f simple-app
```to stop
```shell
docker compose down
```[](https://github.com/ak-git/SimpleApp/actions/workflows/actions.yml/badge.svg)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)