mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 23:13:30 +08:00
Remove deprecated stsId
Closes gh-820
This commit is contained in:
parent
de15e826b8
commit
c98f59e8f2
@ -100,7 +100,6 @@ initializr:
|
|||||||
types:
|
types:
|
||||||
- name: Maven POM
|
- name: Maven POM
|
||||||
id: maven-build
|
id: maven-build
|
||||||
sts-id: pom.xml
|
|
||||||
tags:
|
tags:
|
||||||
build: maven
|
build: maven
|
||||||
format: build
|
format: build
|
||||||
@ -108,7 +107,6 @@ initializr:
|
|||||||
action: /pom.xml
|
action: /pom.xml
|
||||||
- name: Maven Project
|
- name: Maven Project
|
||||||
id: maven-project
|
id: maven-project
|
||||||
sts-id: starter.zip
|
|
||||||
tags:
|
tags:
|
||||||
build: maven
|
build: maven
|
||||||
format: project
|
format: project
|
||||||
@ -116,7 +114,6 @@ initializr:
|
|||||||
action: /starter.zip
|
action: /starter.zip
|
||||||
- name: Gradle Config
|
- name: Gradle Config
|
||||||
id: gradle-build
|
id: gradle-build
|
||||||
sts-id: build.gradle
|
|
||||||
tags:
|
tags:
|
||||||
build: gradle
|
build: gradle
|
||||||
format: build
|
format: build
|
||||||
@ -124,7 +121,6 @@ initializr:
|
|||||||
action: /build.gradle
|
action: /build.gradle
|
||||||
- name: Gradle Project
|
- name: Gradle Project
|
||||||
id: gradle-project
|
id: gradle-project
|
||||||
sts-id: gradle.zip
|
|
||||||
tags:
|
tags:
|
||||||
build: gradle
|
build: gradle
|
||||||
format: project
|
format: project
|
||||||
|
@ -29,9 +29,6 @@ public class Type extends DefaultMetadataElement implements Describable {
|
|||||||
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
private String stsId;
|
|
||||||
|
|
||||||
private String action;
|
private String action;
|
||||||
|
|
||||||
private final Map<String, String> tags = new LinkedHashMap<>();
|
private final Map<String, String> tags = new LinkedHashMap<>();
|
||||||
@ -53,14 +50,6 @@ public class Type extends DefaultMetadataElement implements Describable {
|
|||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStsId() {
|
|
||||||
return this.stsId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStsId(String stsId) {
|
|
||||||
this.stsId = stsId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAction() {
|
public String getAction() {
|
||||||
return this.action;
|
return this.action;
|
||||||
}
|
}
|
||||||
|
@ -45,9 +45,8 @@ public class TypeCapability extends ServiceCapability<List<Type>>
|
|||||||
* @return the Type or {@code null}
|
* @return the Type or {@code null}
|
||||||
*/
|
*/
|
||||||
public Type get(String id) {
|
public Type get(String id) {
|
||||||
return this.content.stream()
|
return this.content.stream().filter((it) -> id.equals(it.getId())).findFirst()
|
||||||
.filter((it) -> id.equals(it.getId()) || id.equals(it.getStsId()))
|
.orElse(null);
|
||||||
.findFirst().orElse(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -100,7 +100,6 @@ initializr:
|
|||||||
types:
|
types:
|
||||||
- name: Maven POM
|
- name: Maven POM
|
||||||
id: maven-build
|
id: maven-build
|
||||||
sts-id: pom.xml
|
|
||||||
tags:
|
tags:
|
||||||
build: maven
|
build: maven
|
||||||
format: build
|
format: build
|
||||||
@ -108,7 +107,6 @@ initializr:
|
|||||||
action: /pom.xml
|
action: /pom.xml
|
||||||
- name: Maven Project
|
- name: Maven Project
|
||||||
id: maven-project
|
id: maven-project
|
||||||
sts-id: starter.zip
|
|
||||||
tags:
|
tags:
|
||||||
build: maven
|
build: maven
|
||||||
format: project
|
format: project
|
||||||
@ -116,7 +114,6 @@ initializr:
|
|||||||
action: /starter.zip
|
action: /starter.zip
|
||||||
- name: Gradle Config
|
- name: Gradle Config
|
||||||
id: gradle-build
|
id: gradle-build
|
||||||
sts-id: build.gradle
|
|
||||||
tags:
|
tags:
|
||||||
build: gradle
|
build: gradle
|
||||||
format: build
|
format: build
|
||||||
@ -124,7 +121,6 @@ initializr:
|
|||||||
action: /build.gradle
|
action: /build.gradle
|
||||||
- name: Gradle Project
|
- name: Gradle Project
|
||||||
id: gradle-project
|
id: gradle-project
|
||||||
sts-id: gradle.zip
|
|
||||||
tags:
|
tags:
|
||||||
build: gradle
|
build: gradle
|
||||||
format: project
|
format: project
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
"name": "Maven POM",
|
"name": "Maven POM",
|
||||||
"id": "maven-build",
|
"id": "maven-build",
|
||||||
"description": null,
|
"description": null,
|
||||||
"stsId": "pom.xml",
|
|
||||||
"action": "/pom.xml",
|
"action": "/pom.xml",
|
||||||
"tags": {
|
"tags": {
|
||||||
"build": "maven",
|
"build": "maven",
|
||||||
|
@ -118,8 +118,9 @@ class MainControllerIntegrationTests
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void gradleWarProject() {
|
void gradleWarProject() {
|
||||||
downloadZip("/starter.zip?style=web&style=security&packaging=war&type=gradle.zip")
|
downloadZip(
|
||||||
.isJavaWarProject().isGradleProject();
|
"/starter.zip?style=web&style=security&packaging=war&type=gradle-project")
|
||||||
|
.isJavaWarProject().isGradleProject();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -349,7 +349,6 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"id": "maven-build",
|
"id": "maven-build",
|
||||||
"name": "Maven POM",
|
"name": "Maven POM",
|
||||||
"stsId": "pom.xml",
|
|
||||||
"tags": {
|
"tags": {
|
||||||
"build": "maven",
|
"build": "maven",
|
||||||
"format": "build"
|
"format": "build"
|
||||||
@ -361,7 +360,6 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"id": "maven-project",
|
"id": "maven-project",
|
||||||
"name": "Maven Project",
|
"name": "Maven Project",
|
||||||
"stsId": "starter.zip",
|
|
||||||
"tags": {
|
"tags": {
|
||||||
"build": "maven",
|
"build": "maven",
|
||||||
"format": "project"
|
"format": "project"
|
||||||
@ -373,7 +371,6 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"id": "gradle-build",
|
"id": "gradle-build",
|
||||||
"name": "Gradle Config",
|
"name": "Gradle Config",
|
||||||
"stsId": "build.gradle",
|
|
||||||
"tags": {
|
"tags": {
|
||||||
"build": "gradle",
|
"build": "gradle",
|
||||||
"format": "build"
|
"format": "build"
|
||||||
@ -385,7 +382,6 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"id": "gradle-project",
|
"id": "gradle-project",
|
||||||
"name": "Gradle Project",
|
"name": "Gradle Project",
|
||||||
"stsId": "gradle.zip",
|
|
||||||
"tags": {
|
"tags": {
|
||||||
"build": "gradle",
|
"build": "gradle",
|
||||||
"format": "project"
|
"format": "project"
|
||||||
|
Loading…
Reference in New Issue
Block a user