OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.79k stars 6.58k forks source link

Java Play-framework server is using a library that is not available anymore (com.typesafe.play/sbt-plugin/2.8.3) #18420

Open vdancik opened 6 months ago

vdancik commented 6 months ago

Bug Report Checklist

Description

Unable to deploy Java Play-framework server since it is using a library that is not available in maven anymore. Do you have any suggestion how to bypass this problem?

Here is a problematic library: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.3")

in a generated file https://github.com/broadinstitute/molecular-data-provider/blob/molepro-code-gen/MoleProAPI/java-play-framework-server/project/plugins.sbt

openapi-generator version
java -jar ../../../openapi-generator/openapi-generator-cli-7.4.0.jar generate -i molecular_data_provider.yml -g java-play-framework -o java-play-framework-server --additional-properties=hideGenerationTimestamp=true
OpenAPI declaration file content or url

https://github.com/broadinstitute/molecular-data-provider/blob/master/MoleProAPI/molecular_data_provider.yml

Generation Details
#13 24.98 [info] loading settings for project base-build from plugins.sbt ...
#13 25.47 [info] loading project definition from /usr/src/base/project
#13 32.27 [warn]
#13 32.27 [warn]        Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
#13 32.29 [warn]                com.typesafe.play:sbt-plugin:2.8.3 (sbtVersion=1.0, scalaVersion=2.12)
#13 32.29 [warn]
#13 32.29 [warn]        Note: Unresolved dependencies path:
#13 32.43 [error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:sbt-plugin;sbtVersion=1.0;scalaVersion=2.12:2.8.3
#13 32.43 [error]   Not found
#13 32.43 [error]   Not found
#13 32.43 [error]   not found: https://repo1.maven.org/maven2/com/typesafe/play/sbt-plugin_2.12_1.0/2.8.3/sbt-plugin-2.8.3.pom
#13 32.43 [error]   not found: /root/.ivy2/local/com.typesafe.play/sbt-plugin/scala_2.12/sbt_1.0/2.8.3/ivys/ivy.xml
Steps to reproduce
Related issues/PRs
Suggest a fix
wing328 commented 6 months ago

i remember seeing similar issues a few days ago but the issue resolved itself later but looks like those dependencies are restored later.

can you please give it another try later?

vdancik commented 6 months ago

i remember seeing similar issues a few days ago but the issue resolved itself later but looks like those dependencies are restored later.

can you please give it another try later?

I am afraid that the issue did not resolved itself and the dependencies are still missing.