-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (61 loc) · 2.54 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
plugins {
id 'org.springframework.boot' version '2.4.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
project.ext {
publishRepo = "https://maven.pkg.github.com/reportportal/complex-migrations"
releaseMode = project.hasProperty("releaseMode")
}
def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' + (releaseMode ? getProperty('scripts.version') : 'develop')
apply from: "$scriptsUrl/build-docker.gradle"
apply from: "$scriptsUrl/build-commons.gradle"
apply from: "$scriptsUrl/build-info.gradle"
apply from: "$scriptsUrl/build-quality.gradle"
apply from: "$scriptsUrl/release-service.gradle"
apply from: "$scriptsUrl/signing.gradle"
sourceCompatibility = '11'
wrapper {
gradleVersion = '6.3'
}
bootJar {
project.hasProperty('gcp') ? getArchiveFileName().set('app.jar') : archiveClassifier.set('exec')
}
jar.enabled(true)
repositories {
mavenCentral { url "https://repo1.maven.org/maven2" }
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url 'https://jitpack.io' }
}
processResources {
dependsOn(gitInfo)
filesMatching('application.properties') {
expand(project.properties)
}
}
//https://nvd.nist.gov/vuln/detail/CVE-2020-9488 and https://nvd.nist.gov/vuln/detail/CVE-2021-44228 and https://nvd.nist.gov/vuln/detail/CVE-2021-45046 and
//https://nvd.nist.gov/vuln/detail/CVE-2021-45105
ext['log4j2.version'] = '2.17.0'
ext['log4j-to-slf4j.version'] = '2.17.0'
//
dependencies {
implementation group: 'org.json', name: 'json', version: '20220320'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.456'
implementation 'software.amazon.awssdk:s3-transfer-manager:2.20.57'
implementation 'software.amazon.awssdk.crt:aws-crt:0.21.8'
implementation 'com.google.guava:guava:31.1-jre'
runtimeOnly 'org.postgresql:postgresql'
}
test {
useJUnitPlatform()
}
addDockerfileToGit.dependsOn createDockerfile
beforeReleaseBuild.dependsOn addDockerfileToGit
publish.dependsOn build
publish.mustRunAfter build