Skip to content

Commit

Permalink
1.修改xcore依赖包版本为0.0.8-jdk17
Browse files Browse the repository at this point in the history
  • Loading branch information
xwintop committed Aug 29, 2022
1 parent 37d52ad commit 8d59b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.gitee.xwintop</groupId>
<artifactId>xcore</artifactId>
<version>0.0.7</version>
<version>0.0.8-jdk17</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,13 @@ public void downloadPlugin(PluginJarInfo pluginJarInfo, BiConsumer<Long, Long> o
File file = pluginJarInfo.getFile();
FileUtils.forceMkdirParent(file);
HttpResponse response = HttpUtil.createGet(pluginJarInfo.getDownloadUrl(), true).executeAsync();
long contentLength = response.contentLength();
response.writeBodyForFile(file, new StreamProgress() {
@Override
public void start() {
}

@Override
public void progress(long progressSize) {
public void progress(long progressSize, long contentLength) {
onProgressUpdate.accept(contentLength, progressSize);
}

Expand Down

0 comments on commit 8d59b4c

Please sign in to comment.