diff --git a/org.lflang.lfc/build.gradle b/org.lflang.lfc/build.gradle index 6c26815eca..5bde33be16 100644 --- a/org.lflang.lfc/build.gradle +++ b/org.lflang.lfc/build.gradle @@ -35,14 +35,14 @@ task buildLfc() { shadowJar { exclude 'test/*' - minimize() { - exclude(dependency('log4j:log4j:.*')) - exclude(dependency('com.google.inject:guice:.*')) - exclude(dependency('org.lflang:org.lflang:.*')) - } transform(com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer){ resource = 'plugin.properties' } + // We should use minimize() here to reduce the size of the JAR, but it causes problems + // with regard to our Kotlin classes. Since we don't use imports to load them but load + // the classes manually, minimize does not see the dependency. While we can add an exclude + // rule, this does not seem to work very well and causes problems when compiling for a + // second time. Also see https://github.com/lf-lang/lingua-franca/pull/1285 } }