-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom maven repositories with credentials #997
Comments
My proposal:
2a. The maven-build-writer can ignore the 2b. The gradle-build-writer can check if there are (non-default) credentials provided and write those to the build.gradle if necessary. Currently the gradle-build-writer can only write repositories on a single line (like To support a representation which includes
should change into something that can (optionally) write multi-line repository information, like
|
Since it it not mentioned explicitly in this issue, I think it would be equally valid to support maven repository credentials in the
There is also limited extensibility here since the |
For Gradle 6.6 and later, we can use their new credential handling support. For earlier versions of Gradle we can mimic that support by writing out property lookups with the property names derived from the repository's name. This will allow common configuration to be written out in different ways by version-specific writers. |
will this be addressed at some point? |
We hope to address it at some point, that's why the issue has not be closed. We don't have any firm plans or a date in mind at the moment, however. |
added jackson annotations on generated interface for deserialization
In our custom instance we would like to add a maven repository which requires credentials.
For maven projects, this works because the user can define the credentials in
~/.m2/settings.xml
while referencing the maven repository-id.For gradle projects this doesn't work. The gradle-way to accomplish this, looks like this:
This is currently not supported by Initializr.
The text was updated successfully, but these errors were encountered: