-
Notifications
You must be signed in to change notification settings - Fork 0
Dev #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dev #2
Changes from all commits
d0689ee
f351bb6
33260df
930b7c3
5e48550
cd7a6f4
1a725c4
1790e42
5e7cafe
70336bc
57cfc85
5f59116
1d4041f
1622102
8d69493
75d2a82
e079cec
c6ec41e
341386a
4a411c3
51d3859
38fb4c9
dcd78e6
95e5941
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .vscode |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| common: | ||
| @cd ./common && ./gradlew --no-daemon clean jar | ||
|
|
||
| aggregator: | ||
| @cd ./aggregator && ./gradlew --no-daemon clean jar | ||
|
|
||
| worker: | ||
| @cd ./worker && ./gradlew --no-daemon clean jar | ||
|
|
||
| producer: | ||
| @cd ./producer && ./gradlew --no-daemon clean bootJar | ||
|
|
||
| docker: | ||
| docker-compose build --no-cache | ||
|
|
||
| .PHONY: build common aggregator worker producer docker | ||
| build: common aggregator worker producer docker | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # | ||
| # https://help.github.com/articles/dealing-with-line-endings/ | ||
| # | ||
| # Linux start script should use lf | ||
| /gradlew text eol=lf | ||
|
|
||
| # These are Windows script files and should use crlf | ||
| *.bat text eol=crlf | ||
|
|
||
| # Binary files should be left untouched | ||
| *.jar binary | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Ignore Gradle project-specific cache directory | ||
| .gradle | ||
|
|
||
| # Ignore Gradle build output directory | ||
| build | ||
| bin/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM eclipse-temurin:21-jre | ||
| WORKDIR /app | ||
| COPY build/libs/*.jar app.jar | ||
| EXPOSE 8080 | ||
| ENTRYPOINT ["java","-jar","app.jar"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| * This file was generated by the Gradle 'init' task. | ||
| * | ||
| * This generated file contains a sample Java application project to get you started. | ||
| * For more details on building Java & JVM projects, please refer to https://docs.gradle.org/9.0.0/userguide/building_java_projects.html in the Gradle documentation. | ||
| */ | ||
|
|
||
| plugins { | ||
| // Apply the application plugin to add support for building a CLI application in Java. | ||
| application | ||
| } | ||
|
|
||
| repositories { | ||
| // Use Maven Central for resolving dependencies. | ||
| mavenCentral() | ||
| } | ||
|
|
||
| dependencies { | ||
| // Use JUnit Jupiter for testing. | ||
| testImplementation(libs.junit.jupiter) | ||
|
|
||
| testRuntimeOnly("org.junit.platform:junit-platform-launcher") | ||
|
|
||
| // This dependency is used by the application. | ||
| implementation(libs.guava) | ||
|
|
||
| implementation("org.itmo.lab2:common:1.0") | ||
| implementation("com.fasterxml.jackson.core:jackson-databind:2.20.1") | ||
| } | ||
|
|
||
| group = "org.itmo.lab2" | ||
|
|
||
| // Apply a specific Java toolchain to ease working on different environments. | ||
| java { | ||
| toolchain { | ||
| languageVersion = JavaLanguageVersion.of(21) | ||
| } | ||
| } | ||
|
|
||
| application { | ||
| // Define the main class for the application. | ||
| mainClass = "org.itmo.lab2.aggregator.Main" | ||
| } | ||
|
|
||
| tasks.jar { | ||
| manifest { | ||
| attributes["Main-Class"] = application.mainClass.get() | ||
| } | ||
| from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) | ||
| duplicatesStrategy = DuplicatesStrategy.EXCLUDE // Handle duplicate files from dependencies | ||
| } | ||
|
|
||
| tasks.named<Test>("test") { | ||
| // Use JUnit Platform for unit tests. | ||
| useJUnitPlatform() | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # This file was generated by the Gradle 'init' task. | ||
| # https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties | ||
|
|
||
| org.gradle.configuration-cache=true | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # This file was generated by the Gradle 'init' task. | ||
| # https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format | ||
|
|
||
| [versions] | ||
| guava = "33.4.6-jre" | ||
| junit-jupiter = "5.12.1" | ||
|
|
||
| [libraries] | ||
| guava = { module = "com.google.guava:guava", version.ref = "guava" } | ||
| junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Комментарий для теста.