Scripting: do not pack generic dependencies jar into maven-all

The -all jar is compacted with proguard, and the proguard removes
synthetic methods methods with $default suffix from classes regardless
of the -keep flag.
Therefore the calls to the $default metods lead to the NoSuchMethodError
exception on runtime.
Removing the main interface module from the proguarded jar solves the
problem for now (but not generally, the use of "proguarded" jars as
libraries should be discouraged.)
#KT-60862 fixed
This commit is contained in:
Ilya Chernikov
2023-08-08 14:07:50 +02:00
committed by Space Team
parent e763e71515
commit a53933d8ce
5 changed files with 65 additions and 2 deletions
@@ -38,6 +38,7 @@ dependencies {
embedded(project(":kotlin-scripting-common")) { isTransitive = false }
embedded(project(":kotlin-scripting-jvm")) { isTransitive = false }
embedded(project(":kotlin-scripting-jvm-host-unshaded")) { isTransitive = false }
embedded(project(":kotlin-scripting-dependencies")) { isTransitive = false }
embedded(project(":kotlin-scripting-dependencies-maven-all")) { isTransitive = false }
embedded("org.slf4j:slf4j-api:1.7.36")
embedded("org.slf4j:slf4j-simple:1.7.36")