Here are some of issues I'm stuck while debugging ...
# kontributors
s
Here are some of issues I'm stuck while debugging the task for compiler embeddable Here's the link to the issue: https://discuss.gradle.org/t/build-kotlin-v1-3-30-with-support-of-gradle-4-4-1/36493
g
You passing Groovy closure to a function with Kotlin Function, it will not work like that probably I would just rewrite 
compilerDummyJar
  function to Groovy
s
Hi @gildor 0/ By this you are suggesting to rewrite the function in `buildSrc/src/main/kotlin/embeddable.kt file?`or suggesting me to override it in
compiler-embeddable/build.gradle
?
g
depends on what is easier, you can add groovy file to your buildSrc with groovy version of this function and remove kotlin one Or if you now care only about compiler-embeddable/build.gradle replace it there
it’s not very straight forward, but you also cannot really use Kotlin lambdas directly with Groovy Closures
maybe just replacing closure with
new Function1<ShadowJar, Unit> { ... }
would be enough
s
Aha you are very right, I wasted a lot amount of time tweaking the arguments to fit but haven't got any success 😞 I need this to work (compiler-embeddable/build.gradle) so that I can able to build kolin-gradle-plugin task! I don't think changing the kotlin one will be a good fit for this ( I'll research about this).
Thank you very much for all your help and fast replies ❤️
maybe just replacing closure with
new Function1<ShadowJar, Unit> { ... }
would be enough
I tried doing this, but haven't got any success!