<@U8VURASJ2> Hi, is mordant-coroutines become a ma...
# clikt
s
@AJ Alt Hi, is mordant-coroutines become a mandatory deps for
2.6.0
? I have a gradle build script which uses just the
TextColors
and it’s broke after updating to 2.6.0. Things started working fine after adding mordant-coroutines.
Copy code
* What went wrong:
com/github/ajalt/mordant/rendering/TextColors
> com.github.ajalt.mordant.rendering.TextColors

* Try:
> Run with --info or --debug option to get more log output.
> Get more help at <https://help.gradle.org>.

* Exception is:
java.lang.NoClassDefFoundError: com/github/ajalt/mordant/rendering/TextColors
        at plugins.Common_gradle.<init>(common.gradle.kts:25)
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
        at plugins.CommonPlugin.apply(CommonPlugin.kt:16)
        at plugins.CommonPlugin.apply(CommonPlugin.kt:9)
a
No, nothing changed about coroutines since 2.5.0. 2.6.0 only contains two commits: one that adds iOS native targets, and one that adds a new class to the default module. Maybe the issue was with some sort of gradle configuration or cache on your end?
s
yeah i did cache clear/clean build. Things were working fine with just
mordant
artifact. May be something else, Need to debug more.
This is a build-logic project for kotlin gradle pre-compiled scripts. Anyway moving to mordant-coroutines fixed the NoClassDefFoundError .