/
build.gradle
93 lines (80 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
group='com.github.mrmike'
version='0.7.0'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.6.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.2.0'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
install {
repositories.mavenInstaller {
pom {
project {
packaging 'jar'
groupId 'com.github.mrmike'
artifactId 'ok2curl'
name 'Ok2Curl'
description 'Convert OkHttp requests into curl logs.'
url 'https://github.com/mrmike/Ok2Curl'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'mrmike'
name 'Michał Moczulski'
email 'moczul@gmail.com'
}
}
scm {
connection 'https://github.com/mrmike/Ok2Curl.git'
developerConnection 'https://github.com/mrmike/Ok2Curl.git'
url 'https://github.com/mrmike/Ok2Curl'
}
}
}
}
}
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
configurations = ['archives']
pkg {
repo = 'maven'
name = 'ok2curl'
desc = 'Convert OkHttp requests into curl logs.'
websiteUrl = 'https://github.com/mrmike/Ok2Curl'
vcsUrl = 'https://github.com/mrmike/Ok2Curl.git'
licenses = ["Apache-2.0"]
publish = true
publicDownloadNumbers = false
version {
desc = 'Convert OkHttp requests into curl logs.'
gpg {
sign = true
passphrase = System.getenv("BINTRAY_GPG_PASS")
}
}
}
}