-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
85 lines (72 loc) · 2.37 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
plugins {
id 'idea'
id 'signing'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
id 'io.qameta.allure' version "$allurePluginVersion"
id 'io.codearte.nexus-staging' version "$nexusStagingPluginVersion"
id 'com.github.ben-manes.versions' version "$benManesPluginVersion"
id 'ru.iopump.qa.allure' version "$allureServerPluginVersion"
}
group 'ru.iopump.kotest'
apply from: "$rootDir/gradle/publishing.gradle"
compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
kotlinOptions.jvmTarget = '9'
}
wrapper {
gradleVersion = "$gradleWrapperVersion"
doLast { delete "$projectDir/gradlew.bat", "$projectDir/gradlew" }
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation("io.kotest:kotest-framework-api:$kotestVersion") { exclude group: 'org.jetbrains.kotlin' }
implementation("io.kotest:kotest-framework-engine-jvm:$kotestVersion") { exclude group: 'org.jetbrains.kotlin' }
api "org.opentest4j:opentest4j:$opentest4jVersion"
api "io.qameta.allure:allure-java-commons:$allureVersion"
testImplementation "io.kotest:kotest-property:$kotestVersion"
testImplementation "io.kotest:kotest-framework-datatest:$kotestVersion"
testImplementation "org.slf4j:slf4j-simple:$slf4jVersion"
testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion") {
exclude group: 'org.jetbrains.kotlin'
exclude group: 'io.mockk'
}
}
test {
systemProperty "allure.results.directory", file("$buildDir/allure-results")
useJUnitPlatform()
systemProperty "kotest.framework.dump.config", "true"
}
allure {
adapter {
allureJavaVersion = allureVersion
autoconfigureListeners = false
aspectjWeaver = true
version = allureVersion
aspectjVersion = aspectJVersion
frameworks {
junit5 {
enabled = false
}
}
}
}
dependencyUpdates {
gradleReleaseChannel = 'current'
}
task cleanAllureResult {
group = 'verification'
doLast {
delete "$buildDir/allure-results"
}
}
allureServer {
relativeResultDir = 'build/allure-results'
allureServerUrl = 'https://allure.iopump.ru'
}