Skip to content

Commit 935dcc2

Browse files
committed
Prepare version 0.12.0
1 parent 228d3f4 commit 935dcc2

File tree

4 files changed

+76
-48
lines changed

4 files changed

+76
-48
lines changed

CHANGELOG.md

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# Change Log
22

33
## [Unreleased]
4-
[Unreleased]: https://github.com/cashapp/redwood/compare/0.11.0...HEAD
4+
[Unreleased]: https://github.com/cashapp/redwood/compare/0.12.0...HEAD
5+
6+
New:
7+
- Nothing yet!
8+
9+
Changed:
10+
- Nothing yet!
11+
12+
Fixed:
13+
- Nothing yet!
14+
15+
16+
## [0.12.0] - 2024-06-18
17+
[0.12.0]: https://github.com/cashapp/redwood/releases/tag/0.12.0
518

619
New:
720
- Upgrade to Kotlin 2.0!
@@ -32,10 +45,65 @@ Breaking:
3245

3346
Upgraded:
3447
- Kotlin 2.0.0
35-
- Zipline 1.12.0
48+
- Zipline 1.13.0
3649
- kotlinx.serialization 1.7.0
3750

3851

52+
### Gradle plugin removed
53+
54+
This version of Redwood removes the custom Gradle plugin in favor of [the official JetBrains Compose compiler plugin](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compiler.html) which ships as part of Kotlin itself.
55+
Each module in which you had previously applied the `app.cash.redwood` plugin should be changed to apply `org.jetbrains.kotlin.plugin.compose` instead.
56+
The Redwood dependencies will no longer be added as a result of the plugin change, and so any module which references Redwoods APIs should add those dependencies explicitly.
57+
58+
For posterity, the Kotlin version compatibility table and compiler version customization for our old Redwood Gradle plugin will be archived here:
59+
60+
<details>
61+
<summary>Redwood 0.12.0 Gradle plugin Kotlin compatibility table</summary>
62+
<p>
63+
64+
Since Kotlin compiler plugins are an unstable API, certain versions of Redwood only work with
65+
certain versions of Kotlin.
66+
67+
| Kotlin | Redwood |
68+
|--------|---------------|
69+
| 1.9.24 | 0.11.0 |
70+
| 1.9.23 | 0.10.0 |
71+
| 1.9.22 | 0.8.0 - 0.9.0 |
72+
| 1.9.10 | 0.7.0 |
73+
| 1.9.0 | 0.6.0 |
74+
| 1.8.22 | 0.5.0 |
75+
| 1.8.20 | 0.3.0 - 0.4.0 |
76+
| 1.7.20 | 0.1.0 - 0.2.1 |
77+
78+
</p>
79+
</details>
80+
81+
<details>
82+
<summary>Redwood 0.12.0 Gradle plugin Compose compiler customization instructions</summary>
83+
<p>
84+
85+
Each version of Redwood ships with a specific JetBrains Compose compiler version which works with
86+
a single version of Kotlin (see [version table](#version-compatibility) above). Newer versions of
87+
the Compose compiler or alternate Compose compilers can be specified using the Gradle extension.
88+
89+
To use a new version of the JetBrains Compose compiler version:
90+
```kotlin
91+
redwood {
92+
kotlinCompilerPlugin.set("1.4.8")
93+
}
94+
```
95+
96+
To use an alternate Compose compiler dependency:
97+
```kotlin
98+
redwood {
99+
kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0")
100+
}
101+
```
102+
103+
</p>
104+
</details>
105+
106+
39107
## [0.11.0] - 2024-05-15
40108
[0.11.0]: https://github.com/cashapp/redwood/releases/tag/0.11.0
41109

README.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -152,42 +152,6 @@ fun Counter(value: Int = 0) {
152152
}
153153
```
154154

155-
### Version compatibility
156-
157-
Since Kotlin compiler plugins are an unstable API, certain versions of Redwood only work with
158-
certain versions of Kotlin.
159-
160-
| Kotlin | Redwood |
161-
|--------|---------------|
162-
| 1.9.24 | 0.11.0 |
163-
| 1.9.23 | 0.10.0 |
164-
| 1.9.22 | 0.8.0 - 0.9.0 |
165-
| 1.9.10 | 0.7.0 |
166-
| 1.9.0 | 0.6.0 |
167-
| 1.8.22 | 0.5.0 |
168-
| 1.8.20 | 0.3.0 - 0.4.0 |
169-
| 1.7.20 | 0.1.0 - 0.2.1 |
170-
171-
### Custom Compose Compiler
172-
173-
Each version of Redwood ships with a specific JetBrains Compose compiler version which works with
174-
a single version of Kotlin (see [version table](#version-compatibility) above). Newer versions of
175-
the Compose compiler or alternate Compose compilers can be specified using the Gradle extension.
176-
177-
To use a new version of the JetBrains Compose compiler version:
178-
```kotlin
179-
redwood {
180-
kotlinCompilerPlugin.set("1.4.8")
181-
}
182-
```
183-
184-
To use an alternate Compose compiler dependency:
185-
```kotlin
186-
redwood {
187-
kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0")
188-
}
189-
```
190-
191155

192156
[compose-server-side]: https://github.com/ShikaSD/compose-server-side
193157
[compose]: https://developer.android.com/jetpack/compose

RELEASING.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,27 @@
77
2. Add a link URL to ensure the header link works.
88
3. Add a new `Unreleased` section to the top.
99

10-
3. Update the `README.md`:
11-
1. Update the Kotlin compatibility table with the new version.
12-
<!--2. Update the "Usage" section to reflect the new release version and the snapshot section to reflect the next "SNAPSHOT" version.-->
13-
14-
4. Commit
10+
3. Commit
1511

1612
```
1713
$ git commit -am "Prepare version X.Y.Z"
1814
```
1915

20-
5. Tag
16+
4. Tag
2117

2218
```
2319
$ git tag -am "Version X.Y.Z" X.Y.Z
2420
```
2521

26-
6. Update `redwoodVersion` in `RedwoodBuildPlugin.kt` to the next "SNAPSHOT" version.
22+
5. Update `redwoodVersion` in `RedwoodBuildPlugin.kt` to the next "SNAPSHOT" version.
2723

28-
7. Commit
24+
6. Commit
2925

3026
```
3127
$ git commit -am "Prepare next development version"
3228
```
3329

34-
8. Push!
30+
7. Push!
3531

3632
```
3733
$ git push && git push --tags

build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
6565
private const val REDWOOD_GROUP_ID = "app.cash.redwood"
6666

6767
// HEY! If you change the major version update release.yaml doc folder.
68-
private const val REDWOOD_VERSION = "0.12.0-SNAPSHOT"
68+
private const val REDWOOD_VERSION = "0.12.0"
6969

7070
private val isCiEnvironment = System.getenv("CI") == "true"
7171

0 commit comments

Comments
 (0)