Open MarcelCoding opened 3 years ago
Our project is suffering from the same issue I think: https://github.com/vector-im/element-android/issues/5961.
@MarcelCoding did you find a way to workaround the problem?
Unfortunately not, I could try not using mavenCentral()
but like the actual URL maven { url 'https://repo1.maven.org/maven2/' }
. Idk why I didn't try that yet...
... it actually worked. I am so stupid.
@bmarty
Ideally we'd parse this out as a special case and translate it to the known maven central URL, but I looked at the commit where you fixed this (https://github.com/MarcelCoding/luna/commit/7e2053bd7872a7ddf964ba676de1649dfde8c749) and it looks like mavenCentral()
allows specifying URL excludes, so it gets tricky fast:
https://github.com/MarcelCoding/luna/commit/7e2053bd7872a7ddf964ba676de1649dfde8c749#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7L39-L41
Our current parser for Maven is completely ruby based, and a bit primitive... long term we'd like to move to a native Java-based helper which would allow directly processing code when fetching the packages, but we're unlikely to get to that for a while.
Thankfully the workaround is trivial.
Package ecosystem java Package manager version gradle 7.0.2 Language version java 11 & 16 Manifest location and content prior to update
build.gradle
luna-main/build.gradle
luna-cacti/build.gradle
luna-weather/build.gradle
luna-dvb/build.gradle
dependabot.yml content https://github.com/MarcelCoding/luna/blob/main/.github/dependabot.yaml Updated dependency
org.springdoc:springdoc-openapi-webflux-ui 1.5.6
What you expected to see, versus what you actually saw As you see maven central is not checked:But Maven Central is configured: https://github.com/MarcelCoding/luna/blob/main/build.gradle#L35-L51 Native package manager behavior Gradle is capable to locate packages in maven central. Images of the diff or a link to the PR, issue or logs Logs
🕹 Bonus points: Smallest manifest that reproduces the issue