-
Notifications
You must be signed in to change notification settings - Fork 16
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
Provide Maven build of plugin #371
Comments
@vogella : Maybe you could help here? |
Absolutely. |
Currently not building anything just setting up the build and Github action For de-jcup#371
Here some pre-requisites :
Some additional information:
Something I would appreciate:
|
The plan is to replace the Gradle build with Maven or do you plan to keep both? |
Currently not building anything just setting up the build and Github action Using the target platform during the Maven build and build the css plug-in For de-jcup#371
Currently not building anything just setting up the build and Github action Using the target platform during the Maven build and build the css plug-in For de-jcup#371
Currently not building anything just setting up the build and Github action Using the target platform during the Maven build and build the css plug-in For de-jcup#371
Currently not building anything just setting up the build and Github action Using the target platform during the Maven build and build the css plug-in For de-jcup#371
Please see #372 for the initial setup. For the necessary libraries, I would not know where to search them. If they are available via Maven central you can add them to the target platform via M2e integration, see here https://www.vogella.com/tutorials/EclipseJarToPlugin/article.html I hope this help, I don't think I would be very efficient trying to add the libs. Can you handle that? |
@vogella : Thank you very much. I will check the PR and tryout to add the libs etc. If I have still questions I will ask you then. |
Sure and thanks. Adding more plug-ins is just a question of adding path to the pom.xml. It is a bit more complex for test plug-ins. Once the libs are there, I can do this. Maybe we can do this in your repo directly in a branch? Could you give me write access? |
|
I just invited you. |
Just as an information: My |
#372 is the first step but PR will not close this issue, so removed the former link. |
Any news with asp-server-asciidoctorj-launcher-dist.jar? It is required by de.jcup.asciidoctoreditor and IIRC you were planning to add it to Maven? Alternative you could also add the JAR to the the lib folder so that we can continue with the update of the build and remove it later once you moved it to Maven central. |
Hello @vogella , sorry for the late response, was very busy. I just created de-jcup/asp#39 to address the problem. |
I'm a bit confused. What do we want to do as a next step? |
@de-jcup any updates from your side? |
- added commons-io 2.7 (originally used io 2.6 but had a vulnerability so used 2.7 now to too many issues with upgrade at the moment - added eclipse-commons 1.0.0 dependency - added asciidoctor j launcher dependency
- unfortunately the runtime dependencies (asciidoctorj for example) seems to be not resolved by asciidoctor-editor-target
Update:
I have added the dependencies as PDT dependencies in last commits,, but there are still some problems. |
Also removes commented reference to libs project. For #371 Requires de-jcup/eclipse-commons#39
- eclipse commons dependency do now work - switched also back to asp 1.3.1 because in asp 1.4.0 there are breaking changes which must be still fixed in master branch and are not necessary to migrate from gradle to maven build, so we use here 1.3.1 - added target to .gitignore because we want no build output inside git
- using now asp 1.3.2 which provides used asciidoctorj api version as a compile dependency - added the asciidoctor api dependency to MANIFEST.MF as well
@de-jcup anything left here? |
There are still some steps to do:
File aspFolder = PluginContentInstaller.INSTANCE.getLibsFolder();
File aspServer = new File(aspFolder, "asp-server-asciidoctorj-dist.jar");
...
aspServerAdapter.setPathToServerJar(aspServer.getAbsolutePath()); We need the complete dist jar to launch. Also the maven central version number is currently not supported here. |
As we source from Maven only changed parts will be included in the new build and downloaded.
If the server is part of the classpath of the plugin you can start it directly from the plug-in |
I want to separate the download not for development, but for the users (update time) For example: Some hours ago I fixed a serious bug and released Because the only changes were done inside the editor plugin the users only needed to download ~ 1 MB for the editor plugin and not ~ 50 MB with the complete ASP server. So this means
|
Still don't understand. If the Maven dependencies are not updated they will also not be updated hence you will not see big updatesd if you only update the core plug-in |
- with "mvn clean verify" the update site will be now build completely automatically and contains the libraries inside, so no longer a need for a big dist jar! - currently the library jars which do not include a OSGI manifest information are handled as "wrapped..." dependencies
- built main plugin did not contain any classes. The reason was the missing entry.
Remark: The former two commits did also merge the current master (containing changes for 3.0.0) into this branch. |
Consumption of Maven libraries via the Tycho build is now also common practice for the platform build and all of my clients. As soon as the libraries are available via Maven central building this plug-in via Maven Tycho is trivial. |
@vogella : I am still running out of time and I did invest much time to get it working in any way (and failed). Currently I cannot work on it. |
No worries we all have time restrictions. If all lib requirements would be at Maven central or a P2 update site setting up a Tycho build would be trivial and I could provide it. Maybe providing a P2 repo for the dependencies would be possible in the future. |
Situation
The gradle build does not build eclipse parts but only the "normal" parts. Reason: Problems with eclipse dependencies, OSGI etc.
Wanted
Automate the complete build process.
Solution
If we change the build to maven tycho we could completely automate the process
The text was updated successfully, but these errors were encountered: