Open
Description
📚 The doc issue
I followed the CONTRIBUTING readme on Ubuntu 24.04, but it seems like compilation of frontend fails due to some deprecated APIs (after the fix to frontend/README.md in #3363)
> Task :archive:compileJava FAILED
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/utils/ArchiveUtils.java:98: warning: [deprecation] URL(String) in URL has been deprecated
URL archiveUrl = new URL(url);
^
error: warnings found and -Werror specified
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/model/s3/HttpUtils.java:55: warning: [deprecation] URL(String) in URL has been deprecated
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
^
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/model/s3/HttpUtils.java:82: warning: [deprecation] URL(String) in URL has been deprecated
URL endpointUrl = new URL(url);
^
1 error
3 warnings
FAILURE: Build failed with an exception.
Suggest a potential alternative/fix
Probably the wrong version of Java is installed in the setup scripts?
Metadata
Metadata
Assignees
Labels
No labels