-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support authentication for plugin repositories #31
Comments
Yep, this makes sense. Would you be willing to develop, test and submit a fix? |
@bigdaz I did attempt this a while back and I couldn't seem to use the the
I think I'm misunderstanding the startup behavior of gradle and these 'init' scripts, the behavior is different than our typical method of gradle configuration. The only work around I found was to reference environment variables directly. |
You won't be able to access the project instance from within the init-script. The script is loaded very early well before any project is loaded. Just a thought: before trying to modify the init-script to load 2 new environment variables, can you try using a repository URL like: |
Fixed in #61 |
Also fixed in 7b589d9 |
In gradle/gradle-build-action#933 the gradle configurations were enhanced to support a custom plugin repository provided by the user. These plugin repositories can require authentication but there is currently no mechanism to also provide a credentials block to this configuration.
It would be helpful if we could also provide a username and password to the custom plugin repository e.g.
The text was updated successfully, but these errors were encountered: