How to add source folder by means of gradle?
已回答
We have set up an empty TeamCity Bitbucket project. It does not have a source folder. I attempt top add a soruce folder by this example.
But it complains that: Module "NewProject" is imported from gradle. Any changes made in its configuration may be lost after reimporting. what is obviously by design as we see here.
How can I add then source folders in my gradle? when it is not possible
请先登录再写评论。
IDE can create a source folder automatically when you enable Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle | Create directories for empty content roots automatically option. Or you can create it manually in project according to the standard gradle Java source sets layout.
Thnx, it asked me on fresh checkout explicitly, exaclty for that setting..