Fix plugin names having hyphens

Any maven based plugin builds that had hyphens in the
names where being truncated to the first hyphen.

e.g. ai-code-review, was "ai" leading to incorrect names
and duplicated entries upon installation.

Replacing indexOf with lastIndexOf, to take everything up
to the version number.
N.B.Version numbers cannot contain suffix information like
-SNAPSHOT, or -rc0 for maven builds.

Bug: Issue 417683832
Change-Id: I1a206635499a2977dcc49503bd300b96fda6bffa
2 files changed
tree: 5e5fc4354dc101a2b943bd38844017c19adf30a1
  1. src/
  2. .gitignore
  3. .zuul.yaml
  4. BUILD
  5. LICENSE
  6. README.md
README.md

plugin-manager

Gerrit web-based plugin manager.

To enable this plugin, please look at the configuration guide