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

If possible, download the binaries as a prep step in CI #2

Open
berezovskyi opened this issue Oct 27, 2020 · 7 comments
Open

If possible, download the binaries as a prep step in CI #2

berezovskyi opened this issue Oct 27, 2020 · 7 comments

Comments

@berezovskyi
Copy link
Contributor

It would be good to remove binaries from https://github.com/eclipse/lyo.oslc-ui/tree/master/libs/jsonschema2pojo-1.0.2

@jadelkhoury
Copy link
Contributor

Alternatively, the POJOs are produced locally as part of the development work. They don't need to be integrated into the build.
With such an approach, we just need to add "Developer Instructions" on the wiki of this repo (or the readme.md).

How to use

After cloning this git repository

  1. download and install jsonschema2pojo
    1. Download the 1.0.2 release (jsonschema2pojo-1.0.2.zip) from https://github.com/joelittlejohn/jsonschema2pojo/releases
    2. Unzip into the folder oslc-ui\libs\. (that is, under the path oslc-ui\libs\jsonschema2pojo-1.0.2, there should be bin & lib folders)
  2. Go the root folder of the repo.
  3. run npm run build:elements-prod...

@berezovskyi
Copy link
Contributor Author

berezovskyi commented Oct 27, 2020 via email

@jadelkhoury
Copy link
Contributor

Can we make a decision on this?
Why is this hacky I am not sure. Producing the POJOs is something one does rarely, and I see it as part of the development work.

@berezovskyi
Copy link
Contributor Author

berezovskyi commented Nov 4, 2020 via email

@berezovskyi
Copy link
Contributor Author

CC @AndreyBespamyatnov in case you are still planning to contribute to the repo beyond the initial push.

@jadelkhoury
Copy link
Contributor

That we agree on. But that is covered under the other issue #3

The original description of this issue is about not committing the jsonschema2pojo library. The library is used to produce the POJOs.
So, I still think we should

  1. NOT commit jsonschema2pojo.
  2. Manually produce the POJOs.
  3. CI to produce a maven out of hte POJOS (Pre-generate POJOs and release as a Maven package #3)

@berezovskyi
Copy link
Contributor Author

berezovskyi commented Nov 4, 2020 via email

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

2 participants