-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
79 lines (64 loc) · 1.68 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
plugins {
id 'java-library'
id 'groovy'
id "com.jfrog.bintray" version "1.8.3"
}
apply plugin: 'maven-publish'
dependencies {
api 'org.spockframework:spock-core:1.1-groovy-2.4'
api 'com.github.tomakehurst:wiremock:2.16.0'
implementation 'com.google.guava:guava:23.0'
testImplementation 'org.codehaus.groovy:groovy-all:2.4.13'
testImplementation "org.apache.httpcomponents:httpclient:4.5.5"
}
repositories {
jcenter()
}
version = '0.1.12'
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
ext.artifactBaseName = 'spock-wiremock-extension'
task sourcesJar(type: Jar) {
baseName artifactBaseName
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.felipefdzdz.spock'
artifactId 'spock-wiremock-extension'
version '0.1.12'
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'spock-wiremock-extension'
name = 'spock-wiremock-extension'
userOrg = 'felipefzdz'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/felipefzdz/spock-wiremock-extension.git'
version {
name = '0.1.12'
}
publications = ['MyPublication']
}
}