Do not threat sources from buildSrc folder as library sources

#KT-27674 Fixed
This commit is contained in:
Natalia Selezneva
2018-10-18 15:06:21 +03:00
parent 6decd06b1b
commit 9653fe2fcf
@@ -133,7 +133,11 @@ object ProjectRootsUtil {
}
if (includeLibrarySource && !isBinary) {
if (fileIndex.isInLibrarySource(file)) return true
if (scriptConfigurationManager?.getAllLibrarySourcesScope()?.contains(file) == true) return true
if (scriptConfigurationManager?.getAllLibrarySourcesScope()?.contains(file) == true &&
!fileIndex.isInSourceContentWithoutInjected(file)
) {
return true
}
}
return false