+ +Since Kotlin compiler plugins are an unstable API, certain versions of Mosaic only work with +certain versions of Kotlin. + +| Kotlin | Mosaic | +|--------|---------------| +| 1.9.24 | 0.12.0 | +| 1.9.22 | 0.11.0 | +| 1.9.20 | 0.10.0 | +| 1.9.10 | 0.9.1 | +| 1.9.0 | 0.8.0 - 0.9.0 | +| 1.8.22 | 0.7.1 | +| 1.8.21 | 0.7.0 | +| 1.8.20 | 0.6.0 | +| 1.8.10 | 0.5.0 | +| 1.8.0 | 0.3.0 - 0.4.0 | +| 1.7.10 | 0.2.0 | +| 1.5.10 | 0.1.0 | + +
++ +Each version of Mosaic ships with a specific JetBrains Compose compiler version which works with +a single version of Kotlin (see [version table](#usage) above). Newer versions of the Compose +compiler or alternate Compose compilers can be specified using the Gradle extension. + +To use a new version of the JetBrains Compose compiler version: +```kotlin +mosaic { + kotlinCompilerPlugin.set("1.4.8") +} +``` + +To use an alternate Compose compiler dependency: +```kotlin +mosaic { + kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0") +} +``` + +
+```groovy -buildscript { - repository { - mavenCentral() - maven { - url 'https://oss.sonatype.org/content/repositories/snapshots/' - } - } - dependencies { - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24' - classpath 'com.jakewharton.mosaic:mosaic-gradle-plugin:0.13.0-SNAPSHOT' +repository { + mavenCentral() + maven { + url 'https://oss.sonatype.org/content/repositories/snapshots/' } } - -apply plugin: 'org.jetbrains.kotlin.jvm' -apply plugin: 'com.jakewharton.mosaic' +dependencies { + implementation("com.jakewharton.mosaic:mosaic-runtime:0.14.0-SNAPSHOT") +} ``` Snapshot documentation is available at [jakewharton.github.io/mosaic/docs/latest/](https://jakewharton.github.io/mosaic/docs/latest/). @@ -214,27 +175,6 @@ fun main() = runMosaic { } ``` -### Custom Compose Compiler - -Each version of Mosaic ships with a specific JetBrains Compose compiler version which works with -a single version of Kotlin (see [version table](#usage) above). Newer versions of the Compose -compiler or alternate Compose compilers can be specified using the Gradle extension. - -To use a new version of the JetBrains Compose compiler version: -```kotlin -mosaic { - kotlinCompilerPlugin.set("1.4.8") -} -``` - -To use an alternate Compose compiler dependency: -```kotlin -mosaic { - kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0") -} -``` - - # License Copyright 2020 Jake Wharton diff --git a/RELEASING.md b/RELEASING.md index c18120b41..d856d4053 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -9,8 +9,7 @@ 3. Update the `README.md`: 1. Change the "Download" section to reflect the new release version. - 2. Update the compatibility chart with our new version and if it supports a new Kotlin version. - 3. Change the snapshot section to reflect the next "SNAPSHOT" version, if it is changing. + 2. Change the snapshot section to reflect the next "SNAPSHOT" version, if it is changing. 4. Commit diff --git a/gradle.properties b/gradle.properties index 7d1161d99..2ee495da8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.jakewharton.mosaic -VERSION_NAME=0.13.0-SNAPSHOT +VERSION_NAME=0.13.0 SONATYPE_HOST=DEFAULT SONATYPE_AUTOMATIC_RELEASE=true