forked from janmekota/commons-dao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
125 lines (103 loc) · 4.13 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import org.owasp.dependencycheck.reporting.ReportGenerator
/*
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'nu.studer.jooq' version '3.0.3'
id 'org.owasp.dependencycheck' version '5.3.1'
}
apply from: 'project-properties.gradle'
apply from: "$scriptsUrl/release-commons.gradle"
apply from: "$scriptsUrl/signing.gradle"
apply from: "$scriptsUrl/copy-database-scripts.gradle"
apply from: "$scriptsUrl/build-quality.gradle"
apply from: "$scriptsUrl/jacoco.gradle"
apply from: 'jooq.gradle'
repositories {
mavenCentral { url "https://repo1.maven.org/maven2" }
if (!releaseMode) {
maven { url 'https://jitpack.io' }
}
}
dependencyManagement {
imports {
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.github.reportportal:commons-bom:6aa55fc0')
mavenBom('io.zonky.test.postgres:embedded-postgres-binaries-bom:12.9.0')
}
}
dependencies {
if (releaseMode) {
compile 'com.epam.reportportal:commons'
compile 'com.epam.reportportal:commons-rules'
compile 'com.epam.reportportal:commons-model'
} else {
compile 'com.github.reportportal:commons:07566b8e'
compile 'com.github.reportportal:commons-rules:01ec4d17'
compile 'com.github.reportportal:commons-model:83f012f'
}
//https://nvd.nist.gov/vuln/detail/CVE-2020-10683 (dom4j 2.1.3 version dependency) AND https://nvd.nist.gov/vuln/detail/CVE-2019-14900
compile('org.springframework.boot:spring-boot-starter-data-jpa') {
exclude group: 'org.hibernate', module: 'hibernate-core'
}
compile('org.hibernate:hibernate-core:5.4.18.Final')
//
//https://nvd.nist.gov/vuln/detail/CVE-2020-13692
compile 'org.postgresql:postgresql:42.2.13'
compile 'org.jooq:jooq'
jooqRuntime 'org.postgresql:postgresql:42.2.13'
compile 'io.minio:minio:6.0.13'
implementation group: 'org.json', name: 'json', version: '20220320'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
compile 'org.hibernate.validator:hibernate-validator'
compile 'org.apache.commons:commons-collections4:4.4'
compile 'commons-fileupload:commons-fileupload:1.4'
compile('commons-validator:commons-validator:1.6') {
exclude group: 'commons-beanutils', module: 'commons-beanutils'
}
compile 'org.jasypt:jasypt:1.9.3'
compile 'io.zonky.test:embedded-postgres:1.2.6'
compile 'org.flywaydb:flyway-core:6.3.1'
compile 'org.apache.jclouds.api:s3:2.5.0'
compile 'org.apache.jclouds.provider:aws-s3:2.5.0'
implementation 'org.apache.jclouds.api:filesystem:2.5.0'
// add lombok support
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.flywaydb.flyway-test-extensions:flyway-spring-test:6.1.0'
}
dependencyCheck {
formats = [ReportGenerator.Format.HTML, ReportGenerator.Format.XML]
}
test {
useJUnitPlatform()
testLogging {
events = ["failed"]
exceptionFormat = "short"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << "-parameters"
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
checkCommitNeeded.dependsOn removeScripts
test.dependsOn copyTestDatabaseScripts
build.dependsOn jacocoTestReport