forked from allure-framework/allure-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (46 loc) · 1.64 KB
/
build.gradle.kts
File metadata and controls
53 lines (46 loc) · 1.64 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
description = "Allure JUnit Platform Integration"
val agent: Configuration by configurations.creating
dependencies {
agent("org.aspectj:aspectjweaver")
api(project(":allure-java-commons"))
implementation("org.junit.jupiter:junit-jupiter-api")
implementation("org.junit.platform:junit-platform-launcher")
implementation(project(":allure-test-filter"))
testAnnotationProcessor("org.slf4j:slf4j-simple")
testAnnotationProcessor(project(":allure-descriptions-javadoc"))
testImplementation("io.github.glytching:junit-extensions")
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.slf4j:slf4j-simple")
testImplementation(project(":allure-assertj"))
testImplementation(project(":allure-java-commons-test"))
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.jar {
manifest {
attributes(mapOf(
"Automatic-Module-Name" to "io.qameta.allure.junitplatform"
))
}
from("src/main/services") {
into("META-INF/services")
}
}
tasks.test {
systemProperty("junit.jupiter.execution.parallel.enabled", "false")
useJUnitPlatform()
exclude("**/features/*")
doFirst {
jvmArgs("-javaagent:${agent.singleFile}")
}
}
val spiOffJar by tasks.creating(Jar::class) {
from(sourceSets.getByName("main").output)
classifier = "spi-off"
}
val spiOff by configurations.creating {
extendsFrom(configurations.getByName("compile"))
}
artifacts.add("archives", spiOffJar)
artifacts.add("spiOff", spiOffJar)