This message was deleted.
# dependency-management
s
This message was deleted.
l
Publication repositories support the same credentials as dependency repositories. Have a look at https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:handling_credentials
s
qq: Can I continue the discussion or should I move this to #CKWJRRC66 where I crossposted this post?
I see you are not in that channel so continuing the discussion here.
Maven provides the option of storing credentials and repository related information in the
.m2/settings.xml
file. Where this can also be encrypted. As of now, to access this I’d need to depend on a plugin like https://github.com/mark-vieira/gradle-maven-settings-plugin.
However considering this is common practice in maven internal publishing I feel that this could be a feature catered too by gradle (or the maven-publish plugin) itself? The does not fall under the credential types that are listed in doc you shared above.
The relevant section of the settings file is https://maven.apache.org/settings.html#Servers
l
There is indeed no such option in Gradle at this time.
s
Would it be worthwhile to open an issue on gradle/gradle for this? I’m not sure if the github repo also covers the maven-publish plugin and if this feature could be in scope
l
The repo covers it as well, so you could. Please check there is not an existing one on this topic tough.
thank you 1
s
I've opened https://github.com/gradle/gradle/issues/21278 . There was no existing issue for this.