From 8b7042a6a04090c2098ec7b0f2693919b8db6170 Mon Sep 17 00:00:00 2001 From: Balazs Kreith Date: Wed, 10 Aug 2022 17:25:39 +0300 Subject: [PATCH] try publishing --- .gitignore | 3 ++- build.gradle | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 0a24d26..d0a9ea6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ .idea/ -.gradle/ \ No newline at end of file +.gradle/ +keys/ \ No newline at end of file diff --git a/build.gradle b/build.gradle index fada56b..f7c2ceb 100644 --- a/build.gradle +++ b/build.gradle @@ -31,13 +31,21 @@ dependencies { publishing { repositories { maven { - name = "GitHubPackages" - url = "https://maven.pkg.github.com/balazskreith/hamok" + name = "OSSRH" + url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") } } +// maven { +// name = "GitHubPackages" +// url = "https://maven.pkg.github.com/balazskreith/hamok" +// credentials { +// username = System.getenv("GITHUB_ACTOR") +// password = System.getenv("GITHUB_TOKEN") +// } +// } } publications { gpr(MavenPublication) {