This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
maven-central.gradle
57 lines (47 loc) · 1.63 KB
/
maven-central.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
// gradle clean install -Dorg.gradle.project.version=x.x.x
apply plugin: 'signing'
apply plugin: 'maven'
if (!project.hasProperty('ossrhUsername')) {
println 'Signing configuration is missing, skip signing'
return
}
signing {
sign configurations.archives
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment {
MavenDeployment deployment -> signing.signPom(deployment)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'RxJersey'
description 'RxJava extension for Jersey and Dropwizard'
url 'https://github.com/alex-shpak/rx-jersey'
packaging 'jar'
scm {
connection 'scm:git:git://github.com/alex-shpak/rx-jersey.git'
developerConnection 'scm:git:ssh://github.com:alex-shpak/rx-jersey.git'
url 'https://github.com/alex-shpak/rx-jersey'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id = '0x719d67fc'
name = 'Alex Shpak'
}
}
}
}
}