-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
52 lines (45 loc) · 1.44 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
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'com.google.cloud.tools.jib' version '2.8.0'
}
group = 'io.nuvalence'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.flywaydb:flyway-core:7.14.1'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-prometheus
implementation 'io.micrometer:micrometer-registry-prometheus:1.8.1'
// https://mvnrepository.com/artifact/io.r2dbc/r2dbc-postgresql
implementation 'io.r2dbc:r2dbc-postgresql:0.8.8.RELEASE'
// https://mvnrepository.com/artifact/org.postgresql/postgresql
implementation 'org.postgresql:postgresql:42.2.23'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
jib {
from {
image = 'openjdk:11.0.10-jdk-slim'
}
to {
image = 'nuvalence/sample'
tags = ['latest']
}
container {
creationTime = "USE_CURRENT_TIMESTAMP"
ports = ['8080']
}
}
tasks.jib.dependsOn(tasks.build)
tasks.jibDockerBuild.dependsOn(tasks.build)