-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to adjust the setup to work with private Maven repositories? #66
Comments
Yes this is sneaky and we can maybe improve the example to be more explicit about the repositories. To explain: One "downside" of this setup is that the repositories for plugins need to be defined twice:
With the change in
The reason this is hidden is that only in this place, and only if you define no custom repositories, Gradle adds
|
I tried to add the
Or in the more compact form:
Similarly, I think the local repo should be defined as:
or:
|
Thank you for double checking @mqware. I adjusted my original answer accordingly. |
I'm trying to build this example using private repos - Gradle Plugin Portal, and Maven central are proxied via private Artifactory.
I made these changes:
gradle/plugins/build.gradle.kts
- replacedgradlePluginPortal()
withgradle/plugins/src/main/kotlin/org.example.gradle.feature.repositories.settings.gradle.kts
- replacedrepositories.mavenCentral()
withI tried to add
pluginManagement
with my gradle plugins repos tosettings.gradle.kts
but it didn't helped.I had to change my wrapper url to the link from my artifactory, but is is working.
But I pointed to Gradle 8.11.1 instead of RC of 8.11.
After all this changes I'm getting:
So it has to other place where I have to point not to
Gradle Central Plugin Repository
but to my artifactory, but not have idea where :(The text was updated successfully, but these errors were encountered: