question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repository settings not honored

See original GitHub issue

Describe the bug

Gradle repositories can be configured to expose only specific groups / artifacts, e.g., with:

repositories {
    mavenCentral()
    jcenter {
        content {
            includeGroup("org.jetbrains.kotlinx")
        }
    }
}

JCenter should only get used to retrieve artifacts with group org.jetbrains.kotlinx

Apparently, however, refreshVersions seems not to be honoring the setup. Try for instance:

dependencies {
    implementation("org.eclipse.mylyn.github:org.eclipse.egit.github.core:_")
}

Latest version on Central (at the moment of writing) is 2.1.5.

refreshVersions detects version 3.4.0.201406110918-r, which is not available.

version.org.eclipse.mylyn.github..org.eclipse.egit.github.core=2.1.5
##                                                 # available=3.4.0.201406110918-r

To Reproduce

An example is provided in this PR: https://github.com/DanySK/upgradle/pull/8 The build fails, Gradle (legitimately) does not find the updated artifact: https://travis-ci.com/github/DanySK/upgradle/jobs/301834976

Commenting out the jcenter repo declaration makes the plugin work as expected.

Expected behavior No update is suggested, due to the repository configuration

Additional context If needed, I can produce a minimal example starting from the repo in which I’m having issues, but the problem should be quite well isolated already. Let me know

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
LouisCADcommented, Mar 24, 2020

Hi @DanySK, thanks manifesting! I knew that it was a feature we don’t currently support but was wondering if it’d actually bother anyone.

I’ll revisit this issue after #153 is resolved, to see if after the behavior change, the issue is still important to address, and how we can address it best.

Regarding your bot, that’s very cool, please open an issue or reach out on Kotlin’s Slack (channel linked from a badge in README) when you have something to show! I know some people like @martinbonnin will be interested!

1reaction
LouisCADcommented, Aug 31, 2020

I’ll do my best to ensure we never rely on a Gradle internal API because these are internals that can change and have no API stability guarantees, and I don’t want to break users in the future.

In the meantime, a feature request has been filed to Gradle, so, @DanySK, please, put your 👍 on this issue instead: https://github.com/gradle/gradle/issues/13952

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing repository settings - GitHub Docs
You can choose the way your repository functions by managing repository settings. Setting repository visibility. You can choose who can view your repository....
Read more >
Settings Repository snychronizes but settings from Repository ...
I'm using IntelliJ IDEA 2018.1.1 Ultimate Edition. I set up a Settings Repository (Git) and start "Settings Repository" in IntelliJ
Read more >
Clicking on Secrets under GitHub repository settings does ...
I have been working in 2 repositories in my company's organization. I have added the same repository secret to both repositories and used...
Read more >
Can't find the button for repo settings - Atlassian Community
Hi, I'd like to set up the access key for a repository. ... https://bitbucket.org/site/master/issues/18258/show-more-button-not-working.
Read more >
Set Git repository settings - Azure Repos | Microsoft Learn
... individual repositories, but not both. If you configure settings at more than one level, the system honors the most restrictive setting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found