From f896438597ca8779fdde708a4f55fbdd13d6c821 Mon Sep 17 00:00:00 2001 From: Carl Norburn Date: Mon, 5 Sep 2022 13:16:21 +0100 Subject: [PATCH] added OSSRH repo --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index c54495212..9aa9e0c23 100644 --- a/build.gradle +++ b/build.gradle @@ -125,6 +125,16 @@ jacocoTestReport { publishing { repositories { + maven { + name = 'OSSRH' + def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' + def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + credentials { + username = System.getenv('MAVEN_USERNAME') + password = System.getenv('MAVEN_PASSWORD') + } + } maven { name = "GitHubPackages" url = "https://maven.pkg.github.com/casper-network/casper-java-sdk"