Skip to content

Commit ed730bd

Browse files
Merge pull request #5 from VictorGotsenko/Step06fixBuildError
Made makefiles
2 parents e48bee0 + ccd9c65 commit ed730bd

File tree

12 files changed

+78
-36
lines changed

12 files changed

+78
-36
lines changed

.github/workflows/DifferenceCalculator.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,15 @@ jobs:
2323
uses: gradle/actions/setup-gradle@v4
2424
with:
2525
gradle-version: 8.7
26-
27-
- uses: austenstone/job-summary@v2.0
28-
id: job-summary
29-
with:
30-
create-pdf: false
31-
- run: echo "${{ steps.job-summary.outputs.job-summary }}"
32-
3326

3427
- name: Build with Gradle Wrapper
3528
run: make build
3629

3730
- name: Checking style with Gradle
3831
run: make lint
3932

40-
#- name: Testing with Gradle
41-
# run: make test
33+
- name: Testing with Gradle
34+
run: make test
4235

4336
- name: Publish code coverage
4437
uses: paambaati/codeclimate-action@v5.0.0

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Ignore Gradle hiden dir
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build
6+
7+
# Ignore Logs output directory
8+
**/logs/
9+
10+
# Ignore IntelliJ IDEA directory
11+
.idea/
12+
13+
!gradle/wrapper/gradle-wrapper.jar
14+
!**/src/main/**/build/
15+
!**/src/test/**/build/
16+
17+
### IntelliJ IDEA ###
18+
*.iws
19+
*.iml
20+
*.ipr
21+
out/
22+
!**/src/main/**/out/
23+
!**/src/test/**/out/
24+
25+
#checkstyle/checkstyle.xml
26+
config/

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,17 @@ run-dist:
33

44
build:
55
make -C app build
6+
7+
clean:
8+
make -C app clean
9+
10+
test:
11+
make -C app test
12+
13+
report:
14+
make -C app report
15+
16+
lint:
17+
make -C app lint
618

719
.PHONY: build

app/Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
run-dist:
22
./build/install/app/bin/app -h
3-
43
run-dist-json:
54
./build/install/app/bin/app src/test/resources/file1.json src/test/resources/file2.json
5+
clean:
6+
./gradlew clean
7+
build:
8+
./gradlew build
9+
install:
10+
./gradlew clean install
11+
test:
12+
./gradlew test
13+
report:
14+
./gradlew jacocoTestReport
15+
lint:
16+
./gradlew checkstyleMain
17+
.PHONY: build
618

app/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+
import org.gradle.api.tasks.testing.logging.TestLogEvent
3+
14
plugins {
25
id("java")
36
id("application")
47
id("se.patrikerdes.use-latest-versions") version "0.2.18"
5-
id("com.github.ben-manes.versions") version "0.41.0"
8+
id("com.github.ben-manes.versions") version "0.50.0"
69
id("checkstyle")
710
id("jacoco")
11+
id("com.adarshr.test-logger") version "4.0.0"
812
}
913

1014
group = "hexlet.code"
@@ -26,6 +30,7 @@ dependencies {
2630
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2")
2731
implementation("com.fasterxml.jackson.core:jackson-annotations:2.17.2")
2832
implementation("com.fasterxml.jackson.core:jackson-core:2.17.2")
33+
testImplementation("org.assertj:assertj-core:3.25.3")
2934
}
3035

3136
tasks.test {

app/file1.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/file2.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
121 Bytes
Binary file not shown.

app/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

app/gradlew

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)