Skip to content

Commit 0db8ff3

Browse files
rwinchjxblum
authored andcommitted
Ensure repoKey in Artifactory configuration is not null.
Methods cannot be called (invoked) from inside Groovy/Gradle DSL.
1 parent 749f22d commit 0db8ff3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildSrc/src/main/groovy/io/spring/gradle/convention/ArtifactoryPlugin.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ class ArtifactoryPlugin implements Plugin<Project> {
3434

3535
project.plugins.apply('com.jfrog.artifactory')
3636

37+
def artifactoryRepoKey = resolveRepositoryKey(project)
3738
project.artifactory {
3839
contextUrl = 'https://repo.spring.io'
3940
publish {
4041
repository {
41-
repoKey = resolveRepositoryKey(project)
42+
repoKey = artifactoryRepoKey
4243
if (isAuthRequired(project)) {
4344
username = artifactoryUsername
4445
password = artifactoryPassword

0 commit comments

Comments
 (0)