• v0.2k2.0.20 abfd205cf6

    v0.2k2.0.20 Stable

    xomrk released this 2024-11-09 13:58:37 +00:00 | 2 commits to master/k2.0.x since this release

    Added 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.multiplatform
    • xomrk.publishing { ... } - org.gradle.maven-publish

    New functions:

    • publishing.forceSetAllMavenArtifactsId("...") - useful for single-platform (e.g. JVM-only) libraries
    • publishing.replaceAllMavenArtifactsIdPrefixes("...", "...") - safe replacing for libraries with many targets
    • publishing.replaceAllMavenArtifactsIdSuffixes("...", "...") - replacing of platform id (but better to do it in kotlin {...} block)
    Downloads
  • v0.1k2.0.20 a5598155e5

    v0.1k2.0.20 Stable

    xomrk released this 2024-11-05 12:20:02 +00:00 | 7 commits to master/k2.0.x since this release

    Added buildscript library for Kotlin/Multiplatform 2.0.20 and Gradle at least 7.5.1.

    New functions:

    • kotlin.configureAllCompilations { ... } - configures compilations of all targets
    • kotlin.configureAllCompilersOptions { ... } - configures compiler for all targets
    • kotlin.noWarnExpectActual() - removes warning "expect/actual mechanism is experimental"
    • kotlin.warningsAsErrors()
    • kotlin.optIn("...") - opt-ins specified annotation to all targets
    • kotlin.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 targets
    • kotlin.defineAllMultiplatformTargets() - defines all possible targets, useful for 'algorithm' libraries that are not depends on platform
    Downloads