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

Using either maven or gradle as a build system. #70

Open
Waterpicker opened this issue Aug 10, 2023 · 5 comments
Open

Using either maven or gradle as a build system. #70

Waterpicker opened this issue Aug 10, 2023 · 5 comments

Comments

@Waterpicker
Copy link

I understand that ImageMagick itself isn't a java program and this is just a fancy JNI wrapper but the lack of usage of one of build systems for java is driving me nuts looking at.

@luca-vercelli
Copy link
Contributor

Please notice in Debian a Maven package was created for jmagick, its pom.xml is here

https://salsa.debian.org/java-team/jmagick/-/blob/master/debian/pom.xml?ref_type=heads

Of course Maven can only compile Java sources, not C native sources

@nordfalk
Copy link
Contributor

If anyone wants to make a pull request where the build system is changed to maven or gradle, I'd hapilly review and merge it.

@luca-vercelli
Copy link
Contributor

luca-vercelli commented Sep 18, 2024

I tryed working on this subject. In branch luca-vercelli:topic-maven-build you can find a project that builds with "mvn package" with JDK 7+.

However the native library must be built with traditional make. Do you think is this useful?
The makefile currently builds both C and Java classes.

@nordfalk
Copy link
Contributor

What does @Waterpicker , @haowei93, @RickHeadle, and @rwperrott think. Is this useful ?

@RickHeadle
Copy link

What does @Waterpicker , @haowei93, @RickHeadle, and @rwperrott think. Is this useful ?

Well, Maven really is a useful tool. I personally use it in my every Java project. Makes my work a whole lot easier when it comes to dependencies and running project under different profiles and settings.
Can't say much about the use case when the project has to build both C and Java classes though. Would suggest to run a few tests before merging, just in case.
That's pretty much it. Good luck ;)

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

4 participants