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
69 lines (62 loc) · 2.02 KB
/
build.gradle.kts
File metadata and controls
69 lines (62 loc) · 2.02 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
plugins {
id("io.github.goooler.shadow")
}
description = "Allure Java Commons"
dependencies {
api("org.slf4j:slf4j-api")
api(project(":allure-model"))
compileOnly("org.aspectj:aspectjrt")
internal("com.fasterxml.jackson.core:jackson-databind")
testImplementation("io.github.benas:random-beans")
testImplementation("io.github.glytching:junit-extensions")
testImplementation("org.apache.commons:commons-lang3")
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.mockito:mockito-core")
testImplementation("org.slf4j:slf4j-simple")
testImplementation(project(":allure-java-commons-test"))
testImplementation(project(":allure-junit-platform"))
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
configurations.forEach { configuration ->
configuration.outgoing.apply {
val removed = artifacts.removeAll { it.classifier.isNullOrEmpty() }
if (removed) {
artifact(tasks.shadowJar) {
classifier = ""
}
}
}
}
tasks {
jar {
dependsOn(shadowJar)
enabled = false
}
shadowJar {
archiveClassifier.set("")
relocate("com.fasterxml.jackson", "io.qameta.allure.internal.shadowed.jackson")
dependencies {
include(dependency("com.fasterxml.jackson.core::"))
}
exclude("**/module-info.class")
exclude("META-INF/LICENSE*.md")
mergeServiceFiles()
manifest {
attributes(mapOf(
"Specification-Title" to project.name,
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Automatic-Module-Name" to "io.qameta.allure.commons"
))
}
}
assemble {
dependsOn(shadowJar)
}
test {
dependsOn(shadowJar)
useJUnitPlatform()
}
}