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")