-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2b3fb3
commit a08df88
Showing
14 changed files
with
111 additions
and
495 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
**/.gradle/** | ||
**/gradlew | ||
**/gradlew.bat | ||
**/gradle/** | ||
|
||
# Compiled class file | ||
*.class | ||
*.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
FROM maven:3.8-openjdk-17-slim | ||
FROM gradle:7.6-jdk17 AS build | ||
|
||
ENV HOME=/home/app | ||
ENV MVN_SETTINGS=/usr/share/maven/ref/settings.xml | ||
|
||
RUN mkdir -p ${HOME} \ | ||
&& mkdir -p /usr/share/maven/ref \ | ||
&& mkdir -p ${HOME}/dispatcher | ||
|
||
ADD ./properties/settings.xml /usr/share/maven/ref/ | ||
RUN mkdir -p ${HOME} && mkdir -p ${HOME}/dispatcher | ||
|
||
ADD ./dispatcher ${HOME}/dispatcher | ||
RUN mvn -f ${HOME}/dispatcher/pom.xml -s ${MVN_SETTINGS} clean package | ||
RUN gradle clean build -p ${HOME}/dispatcher | ||
|
||
CMD ["java", "-jar", "/home/app/dispatcher/target/dispatcher-0.0.1.jar"] | ||
CMD ["java", "-jar", "/home/app/dispatcher/build/libs/dispatcher-0.0.1.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '3.3.0' | ||
id "io.spring.dependency-management" version "1.1.3" | ||
} | ||
|
||
group = 'com.bipbup' | ||
version = '0.0.1' | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
|
||
configureEach { | ||
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j' | ||
exclude group: 'org.slf4j', module: 'slf4j-log4j12' | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation('org.springframework.boot:spring-boot-starter-web') { | ||
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' | ||
} | ||
|
||
implementation('org.telegram:telegrambots-spring-boot-starter:6.9.7.1') { | ||
exclude group: 'commons-logging', module: 'commons-logging' | ||
} | ||
|
||
implementation 'org.springframework.kafka:spring-kafka' | ||
|
||
implementation 'org.springframework.boot:spring-boot-starter-log4j2' | ||
|
||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
} | ||
|
||
dependencies { | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
testCompileOnly 'org.projectlombok:lombok' | ||
testAnnotationProcessor 'org.projectlombok:lombok' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.