2023-11-21 20:04:18 +01:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'org.flywaydb:flyway-mysql:10.0.1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-25 15:26:17 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-09-23 11:01:43 +02:00
|
|
|
|
2023-03-25 15:26:17 +01:00
|
|
|
id 'jvm-test-suite'
|
2023-11-21 20:04:18 +01:00
|
|
|
id "org.flywaydb.flyway" version "10.0.1"
|
2023-03-25 15:26:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
2023-09-23 11:01:43 +02:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
2023-03-25 15:26:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-21 20:04:18 +01:00
|
|
|
|
2023-08-01 17:08:42 +02:00
|
|
|
configurations {
|
|
|
|
flywayMigration.extendsFrom(implementation)
|
|
|
|
}
|
|
|
|
|
2023-03-25 15:26:17 +01:00
|
|
|
dependencies {
|
|
|
|
implementation project(':code:common:model')
|
|
|
|
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
|
|
|
implementation libs.guice
|
|
|
|
implementation libs.bundles.gson
|
|
|
|
|
|
|
|
implementation libs.notnull
|
|
|
|
|
|
|
|
implementation libs.commons.lang3
|
|
|
|
|
|
|
|
implementation libs.trove
|
|
|
|
|
|
|
|
implementation libs.rxjava
|
|
|
|
implementation libs.bundles.mariadb
|
2023-11-21 20:04:18 +01:00
|
|
|
flywayMigration 'org.flywaydb:flyway-mysql:10.0.1'
|
2023-03-25 15:26:17 +01:00
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
2023-07-10 17:36:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
testImplementation platform('org.testcontainers:testcontainers-bom:1.17.4')
|
|
|
|
testImplementation 'org.testcontainers:mariadb:1.17.4'
|
|
|
|
testImplementation 'org.testcontainers:junit-jupiter:1.17.4'
|
2024-01-12 15:55:50 +01:00
|
|
|
testImplementation project(':code:libraries:test-helpers')
|
2023-03-25 15:26:17 +01:00
|
|
|
}
|
|
|
|
|
2023-08-01 17:08:42 +02:00
|
|
|
flyway {
|
|
|
|
url = 'jdbc:mariadb://localhost:3306/WMSA_prod'
|
|
|
|
user = 'wmsa'
|
|
|
|
password = 'wmsa'
|
|
|
|
schemas = ['WMSA_prod']
|
|
|
|
configurations = [ 'compileClasspath', 'flywayMigration' ]
|
|
|
|
locations = ['filesystem:src/main/resources/db/migration']
|
2023-11-21 20:04:18 +01:00
|
|
|
cleanDisabled = false
|
2023-08-01 17:08:42 +02:00
|
|
|
}
|
2023-07-10 17:36:12 +02:00
|
|
|
|