Hi Im trying to add CLI framework of <https://gith...
# gradle
c
Hi Im trying to add CLI framework of https://github.com/JakeWharton/mosaic into KMP project, Issue Im facing is the framework uses
Copy code
classpath(kotlin("gradle-plugin", version = "1.5.10"))
and other KMP modules uses
1.5.31
Im trying to figure out if I can put a conditional if/else in buildscript depending on the module name or create new buildscript for cli module. if there is any resource/example please share
m
Why don't you use
1.5.31
for your Kotlin Gradle Plugin everywhere ? That should be compatible
Copy code
Versions of Kotlin older than 1.5.10 are not supported. Versions newer than those listed may be supported but are untested.
Uh ok...
Well, what happens if you use
1.5.31
everywhere?
c
thanks, @mbonnin for checking, Gradle prompt below message when I use
1.5.31
kotlin gradle version
Copy code
This version (1.1.0-alpha01) of the Compose Compiler requires Kotlin version 1.5.10 but you appear to be using Kotlin version 1.5.31 which is not known to be compatible.  Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).