Skip to content

Commit 9d5c7d1

Browse files
committed
added maven upload
1 parent ab0e4da commit 9d5c7d1

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

build.gradle

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,53 @@ artifacts {
5959
signing {
6060
sign configurations.archives
6161
}
62+
63+
uploadArchives {
64+
repositories {
65+
mavenDeployer {
66+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
67+
68+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
69+
authentication(userName: ossrhUsername, password: ossrhPassword)
70+
}
71+
72+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
73+
authentication(userName: ossrhUsername, password: ossrhPassword)
74+
}
75+
76+
pom.project {
77+
name 'Java Hamcrest'
78+
packaging 'jar'
79+
description 'Hamcrest matcher library for Java'
80+
url 'http://hamcrest.org/JavaHamcrest/'
81+
82+
scm {
83+
connection 'git@github.com:hamcrest/JavaHamcrest.git'
84+
url 'https://github.com/hamcrest/JavaHamcrest'
85+
}
86+
87+
licenses {
88+
license {
89+
name 'BSD Licence 3'
90+
url 'http://opensource.org/licenses/BSD-3-Clause'
91+
}
92+
}
93+
94+
developers {
95+
developer {
96+
id 'joewalnes'
97+
name 'Joe Walnes'
98+
}
99+
developer {
100+
id 'npryce'
101+
name 'Nat Pryce'
102+
}
103+
developer {
104+
id 'sf105'
105+
name 'Steve Freeman'
106+
}
107+
}
108+
}
109+
}
110+
}
111+
}

0 commit comments

Comments
 (0)