forked from pact-foundation/pact-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (91 loc) · 2.75 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
plugins {
id "com.gradle.plugin-publish" version "1.0.0"
}
dependencies {
implementation project(":provider")
implementation gradleApi()
implementation localGroovy()
implementation 'com.github.ajalt:mordant:1.2.1'
implementation 'commons-io:commons-io:2.11.0'
implementation "org.apache.commons:commons-lang3:${project.commonsLang3Version}"
testImplementation "junit:junit:${project.junitVersion}"
testImplementation 'org.mockito:mockito-core:2.28.2'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
}
// There is a Groovy version mismatch between GroovyDoc, Gradle and the project
groovydoc {
enabled = false
}
pluginBundle {
website = 'https://github.com/pact-foundation/pact-jvm/tree/master/provider/gradle'
vcsUrl = 'https://github.com/pact-foundation/pact-jvm'
description = 'Gradle plugin for verifying pacts against a provider.'
tags = ['pact', 'cdc', 'consumerdrivencontracts', 'microservicetesting']
}
gradlePlugin {
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.'
}
}
}
compileGroovy {
dependsOn compileKotlin
classpath = classpath.plus(files(compileKotlin.destinationDir))
}
publishing {
publications {
pluginMaven(MavenPublication) {
// from components.java
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
}