Skip to content

Commit

Permalink
Update download server script (#189)
Browse files Browse the repository at this point in the history
Ensure that the snapshot version of the example server is downloaded
  • Loading branch information
tortmayr committed Jul 18, 2022
1 parent f298529 commit 282a632
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/workflow-glsp/scripts/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import download from 'mvn-artifact-download';
import { join, resolve } from 'path';

const downloadDir = resolve(join(__dirname)) + '/../../..';
const mavenRepository = 'https://repo1.maven.org/maven2/';
const mavenRepository = 'https://oss.sonatype.org/content/repositories/snapshots/';
const groupId = 'org.eclipse.glsp.example';
const artifactId = 'org.eclipse.glsp.example.workflow';
const version = '1.0.0';
const version = '1.1.0';
const classifier = 'glsp';

console.log('Downloading latest version of the Workflow Example Java Server from the maven repository...');
const isSnapShot = false;
const isSnapShot = true;
download({ groupId, artifactId, version, classifier, isSnapShot }, downloadDir, mavenRepository).then(() =>
console.log(
'Download completed. Start the server using this command: \njava -jar org.eclipse.glsp.example.workflow-' +
Expand Down

0 comments on commit 282a632

Please sign in to comment.