-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·109 lines (94 loc) · 2.48 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
plugins {
id 'jacoco'
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
jcenter()
}
ext {
cucumberVersion = "6.10.4"
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
java {
withSourcesJar()
withJavadocJar()
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
dependencies {
implementation 'com.github.tomakehurst:wiremock-jre8:2.35.0'
implementation 'io.cucumber:cucumber-java8:' + cucumberVersion
implementation 'io.cucumber:cucumber-junit:' + cucumberVersion
implementation 'org.slf4j:slf4j-api:1.7.31'
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
testImplementation 'io.rest-assured:rest-assured:4.4.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.mockito:mockito-core:3.11.2'
testImplementation 'org.mockito:mockito-inline:3.11.2'
}
test {
finalizedBy jacocoTestReport
}
artifacts {
archives javadocJar, sourcesJar
}
jacocoTestReport {
dependsOn test
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/*Exception*',
'**/*Constants*'
])
}))
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components["java"])
pom {
name.set("wire-cucumber")
description.set("The intent of this project is to make mocking external REST calls easier. This is achieved by standardizing how the mocks are configured and reducing the scaffolding needed to create and verify invocations of those mocks.")
url.set("https://github.com/podnov/wire-cucumber")
licenses {
license {
name.set("Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("podnov")
name.set("Evan Zeimet")
email.set("podnov@gmail.com")
}
}
scm {
connection.set("scm:https://github.com/podnov/wire-cucumber.git")
developerConnection.set("scm:git://github.com/podnov/wire-cucumber.git")
url.set("https://github.com/podnov/wire-cucumber")
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
signing {
sign publishing.publications
}