From 93a6b50c9a50f92ae4a5a8bd6a1fdab625226214 Mon Sep 17 00:00:00 2001 From: Jake Wang Date: Thu, 5 Dec 2024 13:06:30 +0800 Subject: [PATCH] Fixed maven publishing issues --- epub4j-core/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/epub4j-core/build.gradle b/epub4j-core/build.gradle index 2c7ba17..7b3c613 100644 --- a/epub4j-core/build.gradle +++ b/epub4j-core/build.gradle @@ -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' @@ -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