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

@@ -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

View File

@@ -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
} }

View File

@@ -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",

View File

@@ -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",