Skip to content

Commit

Permalink
fix publishing section in build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Dec 13, 2024
1 parent cce5ec0 commit c2dacfc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ jacocoTestReport {
}

if (project.hasProperty('ossrhUsername')) {
signing {
sign configurations.archives
}

publishing {
repositories {
maven {
Expand All @@ -250,6 +246,9 @@ if (project.hasProperty('ossrhUsername')) {
}
publications {
mavenJava(MavenPublication) {
artifactId = 'dgraph4j'
from components.java

pom {
name = 'dgraph4j'
description = 'Dgraph Java Client'
Expand All @@ -275,6 +274,10 @@ if (project.hasProperty('ossrhUsername')) {
}
}
}

signing {
sign publishing.publications.mavenJava
}
}

task version {
Expand Down

0 comments on commit c2dacfc

Please sign in to comment.