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

Add an option to change the source set of the generated code #37

Open
tacascer opened this issue Feb 22, 2024 · 3 comments
Open

Add an option to change the source set of the generated code #37

tacascer opened this issue Feb 22, 2024 · 3 comments

Comments

@tacascer
Copy link

Currently the default xjc task is created and its output is added to the main SourceSet.

I have a project that only generates code for the test SourceSet. Ideally I would like the ability to switch the source set of the generated code.

It seems like the main SourceSet is being hard-coded to be added to here

@snicoll
Copy link

snicoll commented Jul 23, 2024

We're facing the same issue and we only use schema in tests. As the plugin we were using previously does not seem to be supported anymore, we've migrated to this one with a workaround.

It would be nice to have a task for both the source and the test and be able to disable any of them.

@snicoll
Copy link

snicoll commented Jul 26, 2024

FTR the workaround broke support in Eclipse so we're looking at a different way of handling this.

@bjornvester any appetite to update the plugin to offer a main and a test tasks?

@sbrannen
Copy link

sbrannen commented Aug 7, 2024

FTR the workaround broke support in Eclipse so we're looking at a different way of handling this.

This was the second workaround that we came up with which also allows our projects to be imported into Eclipse IDE: spring-projects/spring-framework@5aa3883

@bjornvester any appetite to update the plugin to offer a main and a test tasks?

@bjornvester, that would be awesome if you would implement that! 😎

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

3 participants