diff --git a/CHANGELOG.md b/CHANGELOG.md index 69efa5282..f17c6ccac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ ## [Unreleased] +## [0.9.0] - 2023-08-09 + +New: +- Support for specifying custom Compose compiler versions. This will allow you to use the latest + version of Molecule with newer versions of Kotlin than it explicitly supports. + + See [the README](https://github.com/JakeWharton/mosaic/#custom-compose-compiler) for more information. + + ## [0.8.0] - 2023-07-20 New: @@ -89,7 +98,8 @@ Breaking: Initial release! -[Unreleased]: https://github.com/JakeWharton/mosaic/compare/0.8.0...HEAD +[Unreleased]: https://github.com/JakeWharton/mosaic/compare/0.9.0...HEAD +[0.9.0]: https://github.com/JakeWharton/mosaic/releases/tag/0.9.0 [0.8.0]: https://github.com/JakeWharton/mosaic/releases/tag/0.8.0 [0.7.1]: https://github.com/JakeWharton/mosaic/releases/tag/0.7.1 [0.7.0]: https://github.com/JakeWharton/mosaic/releases/tag/0.7.0 diff --git a/README.md b/README.md index 1658f70ee..cda48ddbc 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ buildscript { } dependencies { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0' - classpath 'com.jakewharton.mosaic:mosaic-gradle-plugin:0.8.0' + classpath 'com.jakewharton.mosaic:mosaic-gradle-plugin:0.9.0' } } @@ -111,7 +111,7 @@ certain versions of Kotlin. | Kotlin | Mosaic | |--------|---------------| -| 1.9.0 | 0.8.0 | +| 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 | @@ -136,7 +136,7 @@ buildscript { } dependencies { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0' - classpath 'com.jakewharton.mosaic:mosaic-gradle-plugin:0.9.0-SNAPSHOT' + classpath 'com.jakewharton.mosaic:mosaic-gradle-plugin:0.10.0-SNAPSHOT' } } @@ -202,6 +202,26 @@ fun main() = runMosaic { } ``` +### Custom Compose Compiler + +Each version of Molecule 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 +molecule { + kotlinCompilerPlugin.set("1.4.8") +} +``` + +To use an alternate Compose compiler dependency: +```kotlin +molecule { + kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0") +} +``` + # License diff --git a/gradle.properties b/gradle.properties index eabff3af7..b3d66174c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.jakewharton.mosaic -VERSION_NAME=0.9.0-SNAPSHOT +VERSION_NAME=0.9.0 SONATYPE_HOST=DEFAULT SONATYPE_AUTOMATIC_RELEASE=true diff --git a/mosaic-gradle-plugin/src/main/kotlin/com/jakewharton/mosaic/gradle/MosaicExtension.kt b/mosaic-gradle-plugin/src/main/kotlin/com/jakewharton/mosaic/gradle/MosaicExtension.kt index a155b8edf..9a1924354 100644 --- a/mosaic-gradle-plugin/src/main/kotlin/com/jakewharton/mosaic/gradle/MosaicExtension.kt +++ b/mosaic-gradle-plugin/src/main/kotlin/com/jakewharton/mosaic/gradle/MosaicExtension.kt @@ -9,14 +9,14 @@ interface MosaicExtension { * * Example: using a custom version of the JetBrains Compose compiler * ```kotlin - * redwood { + * mosaic { * kotlinCompilerPlugin.set("1.4.8") * } * ``` * * Example: using a custom Maven coordinate for the Compose compiler * ```kotlin - * redwood { + * mosaic { * kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0") * } * ```