forked from pact-foundation/pact-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (54 loc) · 1.62 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
}
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven-publish'
dependencies {
compile gradleApi(), localGroovy(), project(":pact-jvm-provider_${project.scalaVersion}"),
'org.fusesource.jansi:jansi:1.11', 'org.codehaus.groovy.modules.http-builder:http-builder:0.7',
'com.googlecode.java-diff-utils:diffutils:1.3.0'
testCompile project(":pact-specification-test_${project.scalaVersion}")
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
}
bintray {
if (project.hasProperty('bintrayUser')) {
user = bintrayUser
key = bintrayKey
}
publications = ['maven']
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
name = project.name
desc = new File(projectDir, 'README.md').text
websiteUrl = 'https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-provider-gradle'
issueTrackerUrl = 'https://github.com/DiUS/pact-jvm/issues'
vcsUrl = 'https://github.com/DiUS/pact-jvm.git'
licenses = ['Apache-2.0']
labels = ['pact', 'gradle', 'gradle plugin']
publicDownloadNumbers = true
//Optional version descriptor
version {
attributes = ['gradle-plugin': "au.com.dius.pact:au.com.dius:${project.name}"]
}
}
}