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.

Manage plugin versions and related dependencies through custom alias rules

See original GitHub issue

I’m not sure whether to consider this a bug or a feature request (namely, I do not know if the current behavior is there by purpose, if it is an unintended/unspecified behaviour, or if it does not behave as expected)

Describe the bug

Adding custom alias rules may intertwine badly with plugins version management. Consider, e.g.:

plugin.io.gitlab.arturbosch.detekt=1.9.1
version.io.gitlab.arturbosch.detekt..detekt-formatting=1.9.1

Since these two versions must remain aligned, it would be useful to group them into a single versions.properties entry, e.g. by

io.gitlab.arturbosch.detekt:*
                     ^^^^^^

This correctly produces a single version.detekt=1.9.1 entry. However, from this point on, the plugin can no longer get resolved.

To Reproduce

If necessary, I can produce a minimal project using the two plugins mentioned above. Let me know.

Expected behavior the plugin and its dependencies are pulled in with the version specified in the versions.properties file

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
LouisCADcommented, Jun 25, 2020

@DanySK This works:

Version key rule:

io.gitlab.arturbosch.detekt:detekt(-*)
                     ^^^^^^

version.properties file:

plugin.io.gitlab.arturbosch.detekt=version.detekt

version.detekt=1.9.0
## # available=1.9.1
## # available=1.10.0-RC1
0reactions
DanySKcommented, Jun 26, 2020

Yes this looks like a reasonable workaround! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing dependency versions between projects
Using a version catalog ... A version catalog is a list of dependencies, represented as dependency coordinates, that a user can pick from...
Read more >
Alias: An approach to .NET Assembly Conflict Resolution
Most plugin based models load all assemblies into a single shared context. This is a common approach because it has better memory usage...
Read more >
ESLint plugin: @wordpress/dependency-group should have a ...
Create a module; Add an alias to webpack.config.js pointing to that module; Import the module using the alias; Run wp-scripts lint-js.
Read more >
Gradle Goodness: Defining Plugin Versions Using Version ...
A version catalog in Gradle is a central place in our project where we can define dependency references with their version or version...
Read more >
Managing jQuery plugin dependency in webpack
You've mixed different approaches how to include legacy vendor modules. This is how I'd tackle it: 1. Prefer unminified CommonJS/AMD over ...
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