From 4f2aa72fd4aeb065fce5db6b8a137d9aa2e2c148 Mon Sep 17 00:00:00 2001 From: Michael Reichenbach Date: Wed, 20 May 2020 08:54:47 +0200 Subject: [PATCH] fix(publish): revert publishing to project namespace --- gradle/publish.gradle | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 270f6a9..df5f136 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -24,7 +24,7 @@ jar { 'Created-By': "Gradle ${gradle.gradleVersion}", 'Git-Branch': getBranch(), 'Git-Hash': getHash() - ) + ) } } @@ -36,10 +36,8 @@ publishing { } repositories { maven { - def repo = project.findProperty("GITHUB_REPOSITORY")?: System.getenv("GITHUB_REPOSITORY") - def githubOwner, repository = repo != null ? repo.toLowerCase().tokenize("/") : project.findProperty("author") name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/${githubOwner}") + url = uri("https://maven.pkg.github.com/${project.findProperty("GITHUB_REPOSITORY")?: System.getenv("GITHUB_REPOSITORY")}") credentials { username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR") password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")