-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (41 loc) · 1.05 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
buildscript {
dependencies {
classpath('org.postgresql:postgresql:42.7.1')
classpath('org.flywaydb:flyway-database-postgresql:10.4.1')
}
}
plugins {
id 'application'
id('org.flywaydb.flyway') version '10.0.0'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation libs.junit.jupiter
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation libs.guava
implementation 'org.postgresql:postgresql:42.2.5'
implementation 'com.rabbitmq:amqp-client:5.7.1'
implementation 'org.slf4j:slf4j-log4j12:1.7.30'
implementation 'com.google.code.gson:gson:2.8.6'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
application {
mainClass = 'com.coder.judge.App'
}
tasks.named('test') {
useJUnitPlatform()
}
flyway {
url = System.getenv('DB_URL')
user = System.getenv('DB_USER')
password = System.getenv('DB_PASSWD')
schemas = ['public']
locations = ['filesystem:src/main/resources/db/migration']
cleanDisabled = false
}