-
Notifications
You must be signed in to change notification settings - Fork 41
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
CreateTextFile recipe operates in root dir instead of module #258
Comments
Hi @abetaev-equinix ; Generally we recommend folks apply the plugin to the root project and any subprojects through that, as recipes that parse for instance classes often need the output of other modules too for type resolution. Your case here is of course an exception where things are simplfied to a great extent. I'm not sure if we can generalize the case for running against a submodule that easily, with an eye towards more complex recipes and type resolution, but you're welcome to help explore that. |
while looking for a way to walk this around i have noticed even weirder behavior:
and when i run this is definitely not the way it supposed to work: and that |
@timtebeek , I am afraid that is not exactly the reason. |
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Gradle plugin, and my project is a multi-module project.
I have
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
gradle.properties
is created inmodule/submodule/
directory.What did you see instead?
gradle.properties
is created in root directory.Are you interested in contributing a fix to OpenRewrite?
If this is a bug, I can think of how this can be fixed.
The plugin's documentation does not state what is path relative to. I would expect the module where task runs, as per the Gradle plugin documentation:
The text was updated successfully, but these errors were encountered: