We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db8ff3 commit 94fe7bdCopy full SHA for 94fe7bd
buildSrc/src/main/groovy/io/spring/gradle/convention/ArtifactoryPlugin.groovy
@@ -35,12 +35,14 @@ class ArtifactoryPlugin implements Plugin<Project> {
35
project.plugins.apply('com.jfrog.artifactory')
36
37
def artifactoryRepoKey = resolveRepositoryKey(project)
38
+ def authRequired = isAuthRequired(project)
39
+
40
project.artifactory {
41
contextUrl = 'https://repo.spring.io'
42
publish {
43
repository {
44
repoKey = artifactoryRepoKey
- if (isAuthRequired(project)) {
45
+ if (authRequired) {
46
username = artifactoryUsername
47
password = artifactoryPassword
48
}
0 commit comments