-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
61 lines (47 loc) · 1.73 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
plugins {
id 'java'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "org.owasp.dependencycheck" version "5.3.1"
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
project.ext {
releaseMode = project.hasProperty("releaseMode")
publishRepo = "https://maven.pkg.github.com/reportportal/commons-rules"
dependencyRepos = ["commons-model", "commons-bom"]
}
def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' +
(releaseMode ? getProperty('scripts.version') : 'develop')
apply from: scriptsUrl + '/release-commons.gradle'
apply from: scriptsUrl + '/signing.gradle'
apply from: scriptsUrl + '/build-quality.gradle'
repositories {
mavenCentral { url "https://repo1.maven.org/maven2" }
if (!releaseMode) {
maven { url 'https://jitpack.io' }
}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.1.5.RELEASE'
mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.github.reportportal:commons-bom:b7acb00')
}
}
dependencies {
if (releaseMode) {
compile 'com.epam.reportportal:commons-reporting'
} else {
implementation 'com.github.reportportal:commons-reporting:c324bab'
}
compile 'org.slf4j:slf4j-api'
compile 'com.google.guava:guava'
compile 'org.springframework:spring-webmvc'
compile 'org.springframework.security:spring-security-core'
implementation 'javax.servlet:javax.servlet-api'
testImplementation 'junit:junit'
testImplementation 'org.hamcrest:hamcrest-all'
testImplementation 'javax.servlet:javax.servlet-api'
}
wrapper {
gradleVersion = '6.0'
}