1+ description = " Allure Karate Integration"
2+
3+ val karateVersion = " 1.3.1"
4+
5+ configurations {
6+ testImplementation {
7+ exclude(group= " ch.qos.logback" , module = " logback-classic" )
8+ }
9+ }
10+
11+ dependencies {
12+ api(project(" :allure-java-commons" ))
13+ implementation(" com.intuit.karate:karate-core:${karateVersion} " )
14+ implementation(project(" :allure-test-filter" ))
15+ testAnnotationProcessor(" org.slf4j:slf4j-simple" )
16+ testAnnotationProcessor(project(" :allure-descriptions-javadoc" ))
17+ testImplementation(" io.github.glytching:junit-extensions" )
18+ testImplementation(" org.assertj:assertj-core" )
19+ testImplementation(" org.junit.jupiter:junit-jupiter-api" )
20+ testImplementation(" org.junit.jupiter:junit-jupiter-params" )
21+ testImplementation(" org.slf4j:slf4j-simple" )
22+ testImplementation(project(" :allure-java-commons-test" ))
23+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine" )
24+ testImplementation(" org.mock-server:mockserver-netty:5.14.0" )
25+ }
26+
27+ tasks.jar {
28+ manifest {
29+ attributes(mapOf (
30+ " Automatic-Module-Name" to " io.qameta.allure.karate"
31+ ))
32+ }
33+ from(" src/main/services" ) {
34+ into(" META-INF/services" )
35+ }
36+ }
37+
38+ tasks.test {
39+ systemProperty(" junit.jupiter.execution.parallel.enabled" , " false" )
40+ useJUnitPlatform()
41+ exclude(" **/features/*" )
42+ }
43+
44+ val spiOffJar: Jar by tasks.creating(Jar ::class ) {
45+ from(sourceSets.getByName(" main" ).output)
46+ archiveClassifier.set(" spi-off" )
47+ }
48+
49+ publishing {
50+ publications {
51+ named<MavenPublication >(" maven" ) {
52+ artifact(spiOffJar)
53+ }
54+ }
55+ }
0 commit comments