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

Simplify jflex configuration #3431

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Conversation

java {
// gradle-jflex-plugin has a bug in that it always looks for the last srcDir in this source
// set to generate into. By default it would be the src/main directory itself.
srcDir("${buildDir}/generated/sources/jflex")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and changed the directory a bit to match what gradle-jflex-plugin wanted to use as a default

https://github.com/jprante/gradle-plugin-jflex/blob/master/src/main/groovy/org/xbib/gradle/plugin/JFlexPlugin.groovy#L71

Even though that code can basically never use that default as the java sourceset will always have a srcDir, the src/main dir.

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

Nice 👍

@anuraaga anuraaga merged commit 153bf14 into open-telemetry:main Jun 29, 2021
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.

None yet

3 participants