Closed ethauvin closed 7 years ago
Makes total sense, especially since apply()
already uses these different methods depending on whether we're running apt
or kapt3
:
aptConfigs[project.name]?.let { config ->
result.add(generatedDir(project, config.outputDir))
}
kaptConfigs[project.name]?.let { config ->
result.add(File(generatedSources(project, context, config.outputDir)))
}
As discussed, this reverts to the previous
apt
implementation behavior. It does not affectkapt
at all, and passed all of my tests withsemver
andversion-processor
.The reason the
sources
directory was added to path is because you used the same directory creation function (generatedSources
) for bothkapt
andapt
. Whilekapt
needs a few directories,apt
doesn't.As before, generated code is placed in
generated/source/apt
, and no longer ingenerated/source/apt/sources/
.