Add aliases to the list of keywords

This commit makes sure that a dependency can be found in the UI via its
aliases, if any.

Closes gh-231
This commit is contained in:
Stephane Nicoll
2016-07-08 12:01:46 +02:00
parent a3e902b8f0
commit a3d072f20a
4 changed files with 7 additions and 6 deletions

View File

@@ -87,8 +87,9 @@ class UiController {
if (d.weight) {
result.weight = d.weight
}
if (d.keywords) {
result.keywords = d.keywords.join(',')
if (d.keywords || d.aliases) {
def all = d.keywords + d.aliases
result.keywords = all.join(',')
}
result
}

View File

@@ -14,7 +14,8 @@
{
"id": "data-jpa",
"name": "Data JPA",
"group": "Core"
"group": "Core",
"keywords": "jpa"
},
{
"id": "org.acme:foo",

View File

@@ -14,7 +14,8 @@
{
"id": "data-jpa",
"name": "Data JPA",
"group": "Core"
"group": "Core",
"keywords": "jpa"
},
{
"id": "org.acme:foo",