Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-Based Deploys for Classic WebJars #2065

Open
jamesward opened this issue Apr 12, 2024 · 0 comments
Open

User-Based Deploys for Classic WebJars #2065

jamesward opened this issue Apr 12, 2024 · 0 comments

Comments

@jamesward
Copy link
Member

Since this WebJar needs frequent updates I started working on a way to support those via https://webjars.org

It works by defining a metadata file that gives the WebJar an artifact ID and sets properties to define:

  • name
  • repo
  • requirejs.main
  • base.dir

Example:
https://github.com/webjars/webjars-classic/blob/main/swagger-ui.properties

I've deployed the swagger-ui WebJar via https://webjars.org using this setup. The resulting POM is:
https://repo1.maven.org/maven2/org/webjars/swagger-ui/5.14.0/swagger-ui-5.14.0.pom

The properties could enable more flexibility than currently exists, but likely won't be able to cover all of the current setups for all WebJars, in which case we can use the old mechanism.

All metadata definitions will live in:
https://github.com/webjars/webjars-classic

This enables us to control the artifact IDs and enable switching existing Classic WebJars to this approach without changing the coordinates.

My plan is to validate this approach works, and then migrate the most frequently updated Classic WebJars to this setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant