Scripting, main-kts: temporary workaround to avoid IDE exceptions on Kotlin project

Exclude script definition from resources classpath to avoid IDE exceptions
on kotlin project. This is done by moving MainKtsScript to new `jar-resources`
 folder which is not resource root.

#EA-127827
#KT-31176
This commit is contained in:
Sergey Rostov
2019-04-18 11:39:39 +03:00
parent bb3b9a935f
commit aac564872c
2 changed files with 3 additions and 0 deletions
@@ -71,6 +71,9 @@ val packJar by task<ShadowJar> {
from(mainSourceSet.output)
from(fatJarContents)
// don't add this files to resources classpath to avoid IDE exceptions on kotlin project
from("jar-resources")
packagesToRelocate.forEach {
relocate(it, "$mainKtsRelocatedDepsRootPackage.$it")
}