-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (34 loc) · 1.01 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
plugins {
id 'org.springframework.boot' version '2.3.0.M4'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'fr.brouillard.oss.gradle.jgitver' version '0.9.1'
id 'com.google.cloud.tools.jib' version '2.1.0'
id "com.gorylenko.gradle-git-properties" version "2.2.2"
id 'java'
}
group = 'com.example'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
// generating build information containing the coordinates, name, and version of the project.
springBoot {
buildInfo()
}
jib {
container {
creationTime = 'USE_CURRENT_TIMESTAMP'
ports = ['8080']
}
}