How to add source folder by means of gradle?

Answered

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

 

0
2 comments

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.

0
Avatar
Permanently deleted user

Thnx, it asked me on fresh checkout explicitly, exaclty for that setting..

0

Please sign in to leave a comment.