forked from vmware-tanzu-learning/pal-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
30 lines (24 loc) · 959 Bytes
/
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
plugins {
id "java"
id "org.springframework.boot" version "1.5.4.RELEASE"
}
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.1")
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("mysql:mysql-connector-java:6.0.6")
}
bootRun.environment([
"WELCOME_MESSAGE": "hello",
"SPRING_DATASOURCE_URL":
"jdbc:mysql://localhost:3306/tracker_dev?user=tracker&useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false",
])
test.environment([
"WELCOME_MESSAGE": "Hello from main",
"SPRING_DATASOURCE_URL":
"jdbc:mysql://localhost:3306/tracker_test?user=tracker&useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false",
])