I have set the username and password for publishing to artifactory using gradle, however, the build fails on publishing the build.info.
artifactory {
publish {
contextUrl = 'http://localhost:8081/artifactory'
repository {
repoKey = "libs-snapshot-local"
username = "user"
password = "pass"
maven = true
}
defaults {
publications = ('mavenJava')
}
}
}
The user I am running gradle with doesn't have access to the artifactory repository but the user in the artifactory block does.
It seems like the build.info is being published to artifactory with the gradle user and not the user in the build.gradle.
How do I set the username/password so that the build.info is published using a user that has permissions?


