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

Generate UnicodeData using Gradle #50

Open
ericvergnaud opened this issue Mar 21, 2024 · 1 comment
Open

Generate UnicodeData using Gradle #50

ericvergnaud opened this issue Mar 21, 2024 · 1 comment

Comments

@ericvergnaud
Copy link
Contributor

ANTLR tool maven build relies on com.webguys:string-template-maven-plugin:1.1 plugin to generate org/antlr/v5/unicode/UnicodeData.java.
When switching to Gradle, we could not find an equivalent Gradle plugin so we temporarily opted for a tactical solution i.e. use the UnicodeData.java file generated by a previous maven build.
This is acceptable as a tactical solution because the underlying data (emanating from com.ibm.icu.text.UnicodeSet) rarely changes.
But on the long term we need a solution that generates the file dynamically.

Options that come to mind:

  • create a Gradle plugin for string-template
  • use MavenExecutor, wrapping the existing maven plugin
  • use an alternative templating engine for which a Gradle plugin already exists
  • move the code to a custom Gradle task
  • ...
@DavidGregory084
Copy link

I would be happy to help with this @ericvergnaud.

What would the best approach be? Should I open a PR against your fork to be merged into https://github.com/ericvergnaud/antlr5/tree/build-using-gradle?

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