Skip to content

Commit

Permalink
Fixed maven publishing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakuan committed Dec 5, 2024
1 parent 4cc212f commit 93a6b50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions epub4j-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ tasks.withType(Sign).configureEach {
}
}

def ossrU = project.hasProperty("ossrhToken") ? ossrhToken : ""
def ossrP = project.hasProperty("ossrhTokenPassword") ? ossrhTokenPassword : ""
def ossrU = project.hasProperty("ossrhToken2") ? ossrhToken2 : ""
def ossrP = project.hasProperty("ossrhTokenPassword2") ? ossrhTokenPassword2 : ""

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = 'io.documentnode'
artifactId = 'epub4j'
artifactId = 'epub4j-core'
version = project.version
pom {
name = 'epub4j'
Expand Down Expand Up @@ -97,8 +97,8 @@ publishing {
repositories {
mavenLocal()
maven {
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = ossrU
Expand Down

0 comments on commit 93a6b50

Please sign in to comment.