Ensure repoKey in Artifactory configuration is not null.

Methods cannot be called (invoked) from inside Groovy/Gradle DSL.
This commit is contained in:
Rob Winch
2022-02-23 15:31:59 -06:00
committed by John Blum
parent 749f22dd5a
commit 0db8ff3fb8

View File

@@ -34,11 +34,12 @@ class ArtifactoryPlugin implements Plugin<Project> {
project.plugins.apply('com.jfrog.artifactory')
def artifactoryRepoKey = resolveRepositoryKey(project)
project.artifactory {
contextUrl = 'https://repo.spring.io'
publish {
repository {
repoKey = resolveRepositoryKey(project)
repoKey = artifactoryRepoKey
if (isAuthRequired(project)) {
username = artifactoryUsername
password = artifactoryPassword