-
v0.2k2.0.20 Stable
released this
2024-11-09 13:58:37 +00:00 | 2 commits to master/k2.0.x since this releaseAdded Gradle plugin (with id
ru.landgrafhomyak.kotlin.original-multiplatform-ext) with dsl to autamtically enable (lazily) another neccessary plugins and provide their extensions:xomrk { kotlin { } // kotlin("multiplatform") publishing { } // `maven-publish` }Provided plugins:
xomrk.kotlin { ... }-org.jetbrains.kotlin.multiplatformxomrk.publishing { ... }-org.gradle.maven-publish
New functions:
publishing.forceSetAllMavenArtifactsId("...")- useful for single-platform (e.g. JVM-only) librariespublishing.replaceAllMavenArtifactsIdPrefixes("...", "...")- safe replacing for libraries with many targetspublishing.replaceAllMavenArtifactsIdSuffixes("...", "...")- replacing of platform id (but better to do it in kotlin {...} block)
Downloads
-
v0.1k2.0.20 Stable
released this
2024-11-05 12:20:02 +00:00 | 7 commits to master/k2.0.x since this releaseAdded buildscript library for Kotlin/Multiplatform
2.0.20and Gradle at least7.5.1.New functions:
kotlin.configureAllCompilations { ... }- configures compilations of all targetskotlin.configureAllCompilersOptions { ... }- configures compiler for all targetskotlin.noWarnExpectActual()- removes warning "expect/actual mechanism is experimental"kotlin.warningsAsErrors()kotlin.optIn("...")- opt-ins specified annotation to all targetskotlin.optInContracts() = kotlin.optIn("kotlin.contracts.ExperimentalContracts")kotlin.setCompatibilityWithKotlin(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)- sets kotlin compatibility (both api and language) for all targetskotlin.defineAllMultiplatformTargets()- defines all possible targets, useful for 'algorithm' libraries that are not depends on platform
Downloads