-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.34 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'com.bmuschko.docker-spring-boot-application' version '6.1.4'
}
group = 'io.github.springwolf'
version = '0.0.1'
sourceCompatibility = "11"
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal() {
content {
includeGroup "io.github.springwolf"
}
}
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'com.rabbitmq:amqp-client:5.13.1'
runtimeOnly 'io.github.springwolf:springwolf-ui:0.2.1'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
docker {
springBootApplication {
maintainer = '[email protected]'
baseImage = 'amazoncorretto:11-alpine'
ports = [8080]
images = ["stavshamir/springwolf-app:${project.version}"]
jvmArgs = ['-Dspring.profiles.active=docker']
}
registryCredentials {
username = project.findProperty('dockerhubUsername') ?: ''
password = project.findProperty('dockerhubPassword') ?: ''
}
}