-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (51 loc) · 1.12 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
54
55
56
57
58
59
plugins {
id 'org.springframework.boot' version '2.6.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
//jib
id 'com.google.cloud.tools.jib' version '3.2.0'
}
group = 'com.example'
version = '0.0.7-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
jib {
from {
image = "openjdk:17-oracle"
}
to {
image = "${project.name}:${version}"
/* Uncomment below part to publish created image to docker registry.
image = "${docker-registry-url}/${project.name}:${version}"
auth {
username = property('myusername')
password = property('mypassword')
}
*/
}
}
/*
bootBuildImage {
imageName = "${project.name}:${version}"
*/
/* Uncomment below part to publish created image to docker registry.
publish = true
docker {
publishRegistry {
username = "user"
password = "secret"
url = "https://docker.example.com/v1/"
email = "user@example.com"
}
}*//*
}
*/
tasks.named('test') {
useJUnitPlatform()
}