The Gradle 4.0 release notes suggest to add the following line to our Gradle scripts to change the output directory for the main source set back to the old path:
sourceSets.main.output.classesDir = new File(buildDir, "classes/main")
However, in doing so, I am using the deprecated method SourceSetOutput.setClassesDir
.
The deprecation note says “Set the output directory for the particular {@link org.gradle.api.file.SourceDirectorySet}” - but I am not sure how to do that.
Could someone help me out and show how that call is supposed to look like?