Scripting: update scripts in source roots handling
#KT-52525 fixed related to #KT-52735
This commit is contained in:
+4
@@ -156,6 +156,10 @@ private fun ScriptCompilationConfiguration.Builder.propertiesFromTemplate(
|
||||
) {
|
||||
baseClass.replaceOnlyDefault(if (templateClass == baseClassType.fromClass) baseClassType else KotlinType(templateClass))
|
||||
fileExtension.replaceOnlyDefault(mainAnnotation.fileExtension)
|
||||
// TODO: remove this exception when gradle switches to the new definitions and sets the property accordingly
|
||||
if (get(fileExtension) == "gradle.kts") {
|
||||
isStandalone(false)
|
||||
}
|
||||
filePathPattern.replaceOnlyDefault(mainAnnotation.filePathPattern)
|
||||
displayName.replaceOnlyDefault(mainAnnotation.displayName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user