-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (80 loc) · 2.81 KB
/
build.gradle
File metadata and controls
90 lines (80 loc) · 2.81 KB
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
plugins {
id 'java'
// id 'io.freefair.lombok' version '8.10.2'
}
group = 'ru.rustore'
version = '1.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
ext {
projectBuildSourceEncoding = 'UTF-8'
projectReportingOutputEncoding = 'UTF-8'
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.0'
testImplementation 'io.github.cdimascio:dotenv-java:2.2.4'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.postgresql:postgresql:42.7.2'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.15.0'
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.15.0'
testImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.0'
implementation 'org.codehaus.groovy:groovy-all:3.0.23'
implementation 'org.apache.commons:commons-configuration2:2.10.1'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
testImplementation("us.abstracta.jmeter:jmeter-java-dsl:1.29.1") {
exclude group: "org.apache.jmeter", module: "bom"
}
testImplementation("us.abstracta.jmeter:jmeter-java-dsl-jdbc:1.29.1") {
exclude group: "org.apache.jmeter", module: "bom"
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
showStandardStreams = true
displayGranularity = 0
}
systemProperty 'file.encoding', 'UTF-8'
jvmArgs '-Xms1g', '-Xmx7g', '-Duser.language=en', '-Duser.country=US'
String tags = findPropertyOrEnv("TAGS")
if (tags != null) {
useJUnitPlatform {
println("Selected tests: Only tag '$tags'")
includeTags(tags)
}
}
}
tasks.withType(ProcessResources).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
sourceSets {
test {
resources {
srcDir 'src/test/resources'
}
}
}
// Функция для поиска свойств или переменных окружения
def findPropertyOrEnv(String name) {
return project.hasProperty(name) ? project.property(name) : System.getenv(name)
}
tasks.register('cacheAllDependencies') {
doLast {
configurations.findAll { config -> config.canBeResolved }.each { config ->
config.resolve()
}
}
}