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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user