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

hard coded relativeJavaSourcesPath #7

Open
eNkru opened this issue Jun 12, 2017 · 5 comments
Open

hard coded relativeJavaSourcesPath #7

eNkru opened this issue Jun 12, 2017 · 5 comments

Comments

@eNkru
Copy link

eNkru commented Jun 12, 2017

The project I am currently working is a mix of Java and Groovy. The source path is actually named as "src/main/groovy" instead of "src/main/java".

Is that a way to configure the source path in the gradle/maven configuration?

@IgorPerikov
Copy link
Contributor

@eNkru Currently, there is no way to configure it. Speaking about maven plugin, for now it can build api classes for sources outside src/main/java only in multi-module configuration (I haven't checked it yet, but it uses classpath scanner which is not about parsing files recursively, so it should be fine). I'm going to implement this logic for single-module configuration in a few days and provide some examples, I can give you more information on that when it ready.

@eNkru
Copy link
Author

eNkru commented Jun 15, 2017

Great work. Actually I am using Gradle for now. I am back to the manual triggering the APIGenerator at the moment. Once the Gradle plugin support the customise the source path. I can include this plugin into the project 👍

@IgorPerikov
Copy link
Contributor

Just to clarify things up - your datamodel is groovy files and are placed under src/main/groovy right? There will be support for finding them, but the result files is still Java classes, so they will be placed under src/main/java/your/package/name anyway.

@AlexandruGhergut
Copy link

@eNkru 3 years late 😅 but I am trying to address this in #21. I have tested with Kotlin but should work with Groovy too

@eNkru
Copy link
Author

eNkru commented Jan 30, 2020

always be good to see more feature supported 👍

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