File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ ossrhPassword=<token>
3434- Update ` dgraph4j version ` in ` grpc-netty ` table in README.
3535- Update CHANGELOG.
3636- Raise a PR for the above changes. Put the changelog in PR description and merge it.
37- - Run ` ./gradlew publishAllPublicationsToMavenRepository ` .
37+ - Run ` ./gradlew publishMavenJavaPublicationToMavenRepository ` .
3838- Release the deployment by following the steps on the page _ Releasing the Deployment_ (link in references below).
3939- Also cut a release tag on GitHub with the new version.
4040
Original file line number Diff line number Diff line change @@ -225,14 +225,14 @@ jacocoTestReport {
225225}
226226
227227if (project. hasProperty(' ossrhUsername' )) {
228- signing {
229- sign configurations. archives
230- }
231-
232228 publishing {
229+ java {
230+ withSourcesJar()
231+ withJavadocJar()
232+ }
233+
233234 repositories {
234235 maven {
235- // change URLs to point to your repos, e.g. http://my.org/repo
236236 def releasesRepoUrl = ' https://oss.sonatype.org/service/local/staging/deploy/maven2'
237237 credentials {
238238 username = ossrhUsername
@@ -248,8 +248,12 @@ if (project.hasProperty('ossrhUsername')) {
248248 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
249249 }
250250 }
251+
251252 publications {
252253 mavenJava(MavenPublication ) {
254+ artifactId = ' dgraph4j'
255+ from components. java
256+
253257 pom {
254258 name = ' dgraph4j'
255259 description = ' Dgraph Java Client'
@@ -264,7 +268,7 @@ if (project.hasProperty('ossrhUsername')) {
264268 developers {
265269 developer {
266270 name = ' Dgraph Labs'
267- email = ' helo @hypermode.com'
271+ email = ' hello @hypermode.com'
268272 }
269273 }
270274 scm {
@@ -275,6 +279,10 @@ if (project.hasProperty('ossrhUsername')) {
275279 }
276280 }
277281 }
282+
283+ signing {
284+ sign publishing. publications. mavenJava
285+ }
278286}
279287
280288task version {
You can’t perform that action at this time.
0 commit comments