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

Switch build system from Maven to Gradle #789

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Apr 9, 2024

I hope that Gradle offers a bit more flexibility in creating jars with different configurations. And even if not, it is a huge improvement in terms of readability of the build file and availability of documentation.

@lonvia
Copy link
Collaborator Author

lonvia commented Apr 9, 2024

@simonpoole If you have a minute to spare, I'd appreciate a quick look from a long-term user of gradle.

@simonpoole
Copy link
Contributor

Will give it a look ASAP.

@simonpoole
Copy link
Contributor

Changes look fine to me. I ran a build on my laptop, and outside of some of the tests failing (likely because of windows issues), that looked fine too.

</manifestEntries>
</transformer>
<transformer
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That one is missing in the gradle version

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only replacement I can find is a very old plugin that hasn't been touched since 2018. Any other suggestions for replacements?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log4j2 support for Gradle seems to be lacking apache/logging-log4j-transform#73

I think we can skip it as long as we don't have multiple log4j2 plugins. Otherwise we get problems with conflicting Log4j2Plugins.dat files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll leave it then. It seems to be compiling and running as is.

Thanks for looking and thanks for the review.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: found the proper way to solve this. Add

transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer)

to shadow step.

pom.xml Show resolved Hide resolved
@lonvia lonvia merged commit 829e8cc into komoot:master Apr 12, 2024
4 checks passed
@lonvia lonvia deleted the switch-to-gradle branch April 12, 2024 09:41
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

Successfully merging this pull request may close these issues.

3 participants