forked from mitmproxy/mitmproxy
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpublishing.overlay.build.gradle
50 lines (48 loc) · 2.07 KB
/
publishing.overlay.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
{
publications {
PubToSonatype(MavenPublication) {
groupId = 'com.browserup'
artifactId = 'browserup-mitmproxy-client'
version = project.version
from components.java
pom {
name = 'browserup-mitmproxy-client'
description = 'BrowserUp Proxy Client'
url = 'https://github.com/browserup/mitmproxy'
packaging = 'jar'
scm {
connection = 'scm:git:git@github.com:browserup/mitmproxy.git'
developerConnection = 'scm:git:git@github.com:browserup/mitmproxy.git'
url = 'https://github.com/browserup/mitmproxy/tree/main/clients/java'
}
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'browserup'
name = 'BrowserUp, Inc.'
email = 'developers@browserup.com'
}
}
}
}
}
repositories {
maven {
if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword")) {
credentials {
username = ossrhUsername
password = ossrhPassword
}
def releaseRepository = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
def snapshotRepository = uri("https://oss.sonatype.org/content/repositories/snapshots")
url = version.endsWith('SNAPSHOT') ? snapshotRepository : releaseRepository
}
}
}
}