Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change publisher id and use production version of api #10

Merged
merged 2 commits into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VS Code MicroProfile Starter Extension

This is a VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). This extension makes use of the API https://test-start.microprofile.io/api/2.
The MicroProfile Starter extension provides support for generating a MicroProfile Maven project with examples based on the Eclipse MicroProfile Starter project (https://start.microprofile.io/) by the MicroProfile community. You will be able to generate a project by choosing a MicroProfile version, server and specifications, such as CDI, Config, Health Check, Metrics, and more. This extension is hosted under the MicroShed organization.

## Quick Start
* Install the extension
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "mp-starter-vscode-ext",
"displayName": "MicroProfile Starter",
"description": "VS Code extension starter for Eclipse MicroProfile",
"version": "0.1.0",
"publisher": "MicroShed",
"version": "0.2.0",
"publisher": "MicroProfile-Community",
"preview": true,
"license": "EPL-2.0",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions src/util/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function generateProject(): Promise<void> {
var request = require('request');

var supportMatrixOptions = {
url: 'https://test-start.microprofile.io/api/2/supportMatrix'
url: 'https://start.microprofile.io/api/2/supportMatrix'
};

async function getSupportMatrix(error: any, response: { statusCode: number; }, body: any) {
Expand Down Expand Up @@ -152,7 +152,7 @@ export async function generateProject(): Promise<void> {
};

var options = {
url: 'https://test-start.microprofile.io/api/1/project',
url: 'https://start.microprofile.io/api/2/project',
method: 'POST',
headers: headers,
body: dataString
Expand Down Expand Up @@ -186,6 +186,8 @@ export async function generateProject(): Promise<void> {
}

await request(options, callback).pipe(fs.createWriteStream(targetDir + '/' + artifactId + '.zip'));
} else {
vscode.window.showErrorMessage(error);
}
}
request(supportMatrixOptions, getSupportMatrix);
Expand Down