Skip to content

Commit

Permalink
change publisher id and use production version of api (#10)
Browse files Browse the repository at this point in the history
* change publisher id and use production version of api

Signed-off-by: Kathryn Kodama <[email protected]>
  • Loading branch information
kathrynkodama committed Oct 29, 2019
1 parent dff035f commit 0dd3168
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
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

0 comments on commit 0dd3168

Please sign in to comment.