forked from Raiffeisen-DGTL/cib-interns-test-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.67 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
plugins {
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "org.flywaydb.flyway" version "8.0.0"
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-websocket:2.5.5'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// db & schema
runtimeOnly 'org.postgresql:postgresql:42.2.24.jre7'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc:2.5.5'
implementation 'org.springframework.boot:spring-boot-starter-jdbc:2.5.5'
implementation 'org.springframework:spring-jdbc:5.3.10'
implementation 'org.postgresql:postgresql:42.2.24'
// implementation 'org.flywaydb:flyway-core'
implementation 'org.springframework.boot:spring-boot-gradle-plugin:2.5.5'
// logging
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'org.springdoc:springdoc-openapi-data-rest:1.5.11'
// testing
implementation 'com.google.code.gson:gson:2.8.8'
testImplementation 'org.mockito:mockito-core:4.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.5'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.8.1'
implementation 'junit:junit:4.13.2'
}
flyway {
url = 'jdbc:postgresql://localhost:5432/socks-db'
user = 'socks-user'
password = 'socks-password'
createSchemas = false
locations = ['classpath:db/migration']
driver = 'org.postgresql.Driver'
}
test {
useJUnitPlatform()
}
task stage {
stage.dependsOn(bootRun)
}