Skip to content

Commit c6e2f75

Browse files
committed
Fix dependency-analysis
1 parent 9392b5d commit c6e2f75

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed

README.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,46 @@
11
# Simple Java App with Docker support
22

3+
## Update dependencies
4+
5+
```shell
6+
./gradlew dependencyUpdates
7+
```
8+
9+
## Check dependencies
10+
11+
```shell
12+
./gradlew buildHealth
13+
```
14+
315
## Build docker image
416

5-
`docker build -t a002k/simple-app:latest .`
17+
```shell
18+
docker build -t a002k/simple-app:latest .
19+
```
620

721
## Run docker image
822

9-
`docker run --rm a002k/simple-app`
23+
```shell
24+
docker run --rm a002k/simple-app
25+
```
1026

1127
## Run docker image as docker-compose
1228

13-
`docker-compose run --rm simple-app`
29+
```shell
30+
docker compose run --rm simple-app
31+
```
32+
33+
or
34+
35+
```shell
36+
docker compose up -d
37+
```
38+
39+
and show logs
40+
41+
```shell
42+
docker compose logs
43+
```
1444

1545
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f7e44f2278c24e49927d582424b0e2a4)](https://app.codacy.com/gh/ak-git/SimpleApp?utm_source=github.com&utm_medium=referral&utm_content=ak-git/SimpleApp&utm_campaign=Badge_Grade_Settings)
1646
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)

build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ allprojects {
6262
}
6363
}
6464

65-
dependencies {
66-
implementation libs.findbugs.jsr305
67-
testImplementation(platform(libs.junit))
68-
testImplementation libs.bundles.test
69-
}
70-
7165
test {
7266
forkEvery = 5
7367
useJUnitPlatform()

hello/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ plugins {
22
id 'application'
33
}
44

5+
dependencies {
6+
implementation libs.findbugs.jsr305
7+
testImplementation(platform(libs.junit))
8+
testImplementation libs.bundles.test
9+
}
10+
511
application {
612
mainModule = 'com.ak.app'
713
mainClass = 'com.ak.app.MainApp'

libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ findbugs-jsr305 = { module = 'com.google.code.findbugs:jsr305', version.ref = 'j
2525

2626
junit = { module = 'org.junit:junit-bom', version.ref = 'junit' }
2727
junit-jupiter = { module = 'org.junit.jupiter:junit-jupiter', version.ref = 'junit' }
28+
junit-jupiter-api = { module = 'org.junit.jupiter:junit-jupiter-api', version.ref = 'junit' }
2829
assertj = { module = 'org.assertj:assertj-core', version.ref = 'assertj' }
2930

3031
[bundles]
31-
test = ['junit-jupiter', 'assertj']
32+
test = ['junit-jupiter', 'junit-jupiter-api', 'assertj']

0 commit comments

Comments
 (0)