mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 09:44:47 +08:00
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:
@@ -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
|
||||
}
|
||||
|
@@ -14,7 +14,8 @@
|
||||
{
|
||||
"id": "data-jpa",
|
||||
"name": "Data JPA",
|
||||
"group": "Core"
|
||||
"group": "Core",
|
||||
"keywords": "jpa"
|
||||
},
|
||||
{
|
||||
"id": "org.acme:foo",
|
||||
|
@@ -14,7 +14,8 @@
|
||||
{
|
||||
"id": "data-jpa",
|
||||
"name": "Data JPA",
|
||||
"group": "Core"
|
||||
"group": "Core",
|
||||
"keywords": "jpa"
|
||||
},
|
||||
{
|
||||
"id": "org.acme:foo",
|
||||
|
Reference in New Issue
Block a user