Gradle 2.4, how to configure "sourcepath" value

In gradle 2.4 release notes, under section Potential breaking changes : Changes to default value for Java compilation sourcepath It is mentioned the the default value of ‘sourcepath’ is changed (from analysis, it seems like it is set to an empty folder).

Unfortunately in my case, this change actually broke the build, so the question is

Question:
How to configure the value of ‘sourcepath’ in case of a sourceSet?

You currently have to do this on the compile task. This test in the Gradle codebase shows this:

Specifically…

Hi Luke,

I will check it out and let you know.

Thank You

Hi Luke,

I have tried it out and it is working.

Question:
Is there a way to specify the ‘sourcepath’ in the ‘sourceSet’, instead of adding it to the task?

Thank You

Not at the moment. There’s nothing scheduled to do this.

Hi Luke,

Thank you for getting back.