mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 17:48:14 +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:
@@ -120,8 +120,6 @@ initializr:
|
|||||||
artifactId: spring-boot-starter-web-services
|
artifactId: spring-boot-starter-web-services
|
||||||
- versionRange: "[1.1.0.RELEASE,1.4.0.M3)"
|
- versionRange: "[1.1.0.RELEASE,1.4.0.M3)"
|
||||||
artifactId: spring-boot-starter-ws
|
artifactId: spring-boot-starter-ws
|
||||||
keywords:
|
|
||||||
- ws
|
|
||||||
- name: Jersey (JAX-RS)
|
- name: Jersey (JAX-RS)
|
||||||
id: jersey
|
id: jersey
|
||||||
description: the Jersey RESTful Web Services framework
|
description: the Jersey RESTful Web Services framework
|
||||||
|
@@ -87,8 +87,9 @@ class UiController {
|
|||||||
if (d.weight) {
|
if (d.weight) {
|
||||||
result.weight = d.weight
|
result.weight = d.weight
|
||||||
}
|
}
|
||||||
if (d.keywords) {
|
if (d.keywords || d.aliases) {
|
||||||
result.keywords = d.keywords.join(',')
|
def all = d.keywords + d.aliases
|
||||||
|
result.keywords = all.join(',')
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,8 @@
|
|||||||
{
|
{
|
||||||
"id": "data-jpa",
|
"id": "data-jpa",
|
||||||
"name": "Data JPA",
|
"name": "Data JPA",
|
||||||
"group": "Core"
|
"group": "Core",
|
||||||
|
"keywords": "jpa"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "org.acme:foo",
|
"id": "org.acme:foo",
|
||||||
|
@@ -14,7 +14,8 @@
|
|||||||
{
|
{
|
||||||
"id": "data-jpa",
|
"id": "data-jpa",
|
||||||
"name": "Data JPA",
|
"name": "Data JPA",
|
||||||
"group": "Core"
|
"group": "Core",
|
||||||
|
"keywords": "jpa"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "org.acme:foo",
|
"id": "org.acme:foo",
|
||||||
|
Reference in New Issue
Block a user