Closed milahu closed 1 month ago
I'd appreciate if you would provide a concise issue description with a example project that demonstrates the issue. From the wall of text above it appears your project is misconfigured and that the dependencies cannot be resolved because there's no valid repository definition.
example project that demonstrates the issue
i have zero experience with gradle and im surprised that following gradle docs (and stackoverflow) does not solve my issue
the dependencies cannot be resolved because there's no valid repository definition
repos are declared in gradle2nix/settings.gradle.kts i tried to move the repos to gradle2nix/build.gradle.kts but no luck so the error "no repositories are defined" makes no sense
If you have zero Gradle experience then first get the project working before filing issues here that are not related to the plugin. I'm unable to debug your Gradle setup.for you.
first get the project working
the project is "working"
but adding version-catalog-update-plugin
does not work
updating all dependencies of a project should be trivial for example, for npm projects there is ncu -u
hvisser closed this as completed
still an issue
i dont see how my build.gradle.kts
or settings.gradle.kts
are wrong
and the "no repositories are defined" error message is not helpful
... or do you think its funny to throw useless error messages so only "expert" gradle users know what to do?
I understand your frustration, but as I'm trying to point out: this error is not thrown by this plugin.
If you'd have a clear example project for me to check out I'd take a look, but you only refer to an existing project that doesn't have your changes so I'm unable to do a quick check, and I do not have the bandwidth to figure out what you are doing to retrace your steps.
i want to add
version-catalog-update-plugin
to gradle2nix/build.gradle.ktsin #151, i have added this plugins block to
build.gradle.kts
ok, now
gradlew versionCatalogUpdate
fails to findorg.apache.logging.log4j:log4j-core
makes sense, because log4j was broken until 2.17.0
makes no sense, because repos are declared in gradle2nix/settings.gradle.kts
ok, let me add repos to
build.gradle.kts
ok, now
gradlew versionCatalogUpdate
fails withok, let me remove the dependencyResolutionManagement block from
settings.gradle.kts
ok, now
gradlew versionCatalogUpdate
fails again withthis makes no sense... is this a bug in
version-catalog-update-plugin
?says
currently repos are declared in gradle2nix/settings.gradle.kts ("the new way") so ideally
version-catalog-update-plugin
should "just work"