-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
99 lines (85 loc) · 4.4 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
group 'com.geekoosh'
version '0.9'
apply plugin: 'maven-publish'
apply plugin: 'java'
sourceCompatibility = 1.11
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
maven {
url "https://repo.eclipse.org/content/groups/releases/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
classpath "com.github.johnrengelman:shadow:8.1.0"
classpath 'ca.cutterslade.gradle:gradle-dependency-analyze:1.3.3'
}
}
apply plugin: "io.spring.dependency-management"
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
archiveFileName = "flyway-all.jar"
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer)
}
dependencyManagement {
imports {
mavenBom 'com.amazonaws:aws-java-sdk-bom:1.11.623'
}
}
ext {
jgitVersion = '6.4.0.202211300538-r'
jettyVersion = '10.0.14'
log4jVersion = '2.20.0'
testContainersVersion = '1.17.6'
}
dependencies {
implementation group: 'org.flywaydb', name: 'flyway-core', version: '7.11.1'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: "${jgitVersion}"
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation group: 'org.json', name: 'json', version: '20230227'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.5.4'
implementation group: 'com.mysql', name: 'mysql-connector-j', version: '8.0.32'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4jVersion}"
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.2.2'
implementation group: 'com.amazonaws', name: 'aws-lambda-java-log4j2', version: '1.5.1'
implementation group: 'com.amazonaws', name: 'aws-java-sdk-s3'
implementation group: 'com.amazonaws', name: 'aws-java-sdk-secretsmanager'
// Override transitive dependencies within SecretsManager to deal with high priority CVEs.
// See https://github.com/flyway/flyway/commit/99dafe14591d8eb9c0025f47be73015ae6ced4ac
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.5.1'
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-cbor', version: '2.12.1'
implementation platform("org.testcontainers:testcontainers-bom:${testContainersVersion}")
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.+'
testImplementation group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.0'
testImplementation group: 'cloud.localstack', name: 'localstack-utils', version: '0.2.22'
testImplementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit.http.server', version: "${jgitVersion}"
testImplementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit.junit.http', version: "${jgitVersion}"
testImplementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit.junit', version: "${jgitVersion}"
testImplementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: "${jgitVersion}"
testImplementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: "${jettyVersion}"
testImplementation group: 'org.eclipse.jetty', name: 'jetty-util', version: "${jettyVersion}"
testImplementation group: 'org.eclipse.jetty', name: 'jetty-server', version: "${jettyVersion}"
testImplementation group: 'org.eclipse.jetty', name: 'jetty-security', version: "${jettyVersion}"
testImplementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '8.5.23'
testImplementation group: 'org.testcontainers', name: 'postgresql', version: "${testContainersVersion}"
testImplementation group: 'org.testcontainers', name: 'mysql', version: "${testContainersVersion}"
testImplementation "org.testcontainers:localstack:${testContainersVersion}"
}
task buildZip(type: Zip) {
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
}
build.dependsOn buildZip