Skip to content

Commit f43dc66

Browse files
Adopt the [email protected] edge release (#3031)
Signed-off-by: Jinbo Wang <[email protected]>
1 parent 09e2c83 commit f43dc66

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

gulpfile.js

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,31 @@ gulp.task('download_jre', async function (done) {
116116
done();
117117
});
118118

119-
gulp.task('download_lombok', function (done) {
119+
gulp.task('download_lombok', async function (done) {
120120
if (fse.existsSync('./lombok')) {
121121
fse.removeSync('./lombok');
122122
}
123-
const lombokVersion = '1.18.24';
124-
// The latest lombok version can be found on the website https://projectlombok.org/downloads
125-
const lombokUrl = `https://projectlombok.org/downloads/lombok-${lombokVersion}.jar`;
126-
download(lombokUrl)
127-
.pipe(gulp.dest('./lombok/'))
123+
124+
await new Promise(function (resolve, reject) {
125+
// Adopt lombok-1.18.27 edge release for the issue https://github.com/redhat-developer/vscode-java/issues/2887
126+
download("https://projectlombok.org/lombok-edge.jar")
127+
.pipe(gulp.dest('./lombok/'))
128+
.on("error", reject)
129+
.on('end', () => {
130+
fse.renameSync("./lombok/lombok-edge.jar", "./lombok/lombok-1.18.27.jar");
131+
resolve();
132+
});
133+
134+
// TODO: Switch to stable version once lombok 1.18.28 is released.
135+
136+
// const lombokVersion = '1.18.24';
137+
// // The latest lombok version can be found on the website https://projectlombok.org/downloads
138+
// const lombokUrl = `https://projectlombok.org/downloads/lombok-${lombokVersion}.jar`;
139+
// download(lombokUrl)
140+
// .pipe(gulp.dest('./lombok/'))
141+
// .on("error", reject)
142+
// .on('end', resolve);
143+
});
128144
done();
129145
});
130146

0 commit comments

Comments
 (0)