-
-
Notifications
You must be signed in to change notification settings - Fork 481
/
build.gradle
103 lines (93 loc) · 2.79 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
plugins {
id 'au.com.dius.pact.kotlin-common-conventions'
id 'java-library'
id 'java-gradle-plugin'
id "com.gradle.plugin-publish" version "1.2.0"
}
group = 'au.com.dius.pact.provider'
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation project(':provider')
implementation project(':core:model')
implementation 'com.github.ajalt:mordant:1.2.1'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-lang3'
implementation 'io.github.oshai:kotlin-logging-jvm'
testImplementation 'junit:junit'
testImplementation 'org.mockito:mockito-core:2.28.2'
// This needs to match the version of Groovy provided by Gradle
testImplementation('org.spockframework:spock-core:2.3-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
}
// There is a Groovy version mismatch between GroovyDoc, Gradle and the project
groovydoc {
enabled = false
}
gradlePlugin {
website = 'https://github.com/pact-foundation/pact-jvm/tree/master/provider/gradle'
vcsUrl = 'https://github.com/pact-foundation/pact-jvm'
plugins {
pactProviderPlugin {
id = 'au.com.dius.pact'
displayName = 'Gradle Pact Provider plugin'
implementationClass = 'au.com.dius.pact.provider.gradle.PactPlugin'
description = 'Gradle plugin for verifying pacts against a provider.'
tags.set(['pact', 'cdc', 'consumerdrivencontracts', 'microservicetesting'])
}
}
}
compileGroovy {
dependsOn compileKotlin
classpath = classpath.plus(files(compileKotlin.destinationDirectory))
}
publishing {
publications {
pluginMaven(MavenPublication) {
pom {
name = project.name
description = 'Gradle Pact plugin'
url = 'https://github.com/pact-foundation/pact-jvm'
licenses {
license {
name = 'Apache 2'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/pact-foundation/pact-jvm'
connection = 'https://github.com/pact-foundation/pact-jvm.git'
}
developers {
developer {
id = 'thetrav'
name = 'Travis Dixon'
email = '[email protected]'
}
developer {
id = 'rholshausen'
name = 'Ronald Holshausen'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
if (project.hasProperty('sonatypeUsername')) {
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
}
signing {
required { project.hasProperty('isRelease') }
sign publishing.publications.pluginMaven
}