Do you happen to know whether ktlint gradle plugin is using ktlint 1.3.x? If it uses 1.2.x or older you might not be able to use latest versions of compose rules. I don't know by heart which is the last version that still can be used with ktlint 1.2 or older.
👍 1
r
Rudy Sulley
07/11/2024, 11:05 PM
the gradle plugin does use 1.3.1,
Copy code
version.set("1.3.1")
Rudy Sulley
07/11/2024, 11:58 PM
that solved the issue, thanks for the heads up
it was using a different version prior to implicitly setting it
d
daphillips
07/24/2024, 5:04 AM
@Rudy Sulley are you able to share the config you used to get this going? I'm also working on a CMP project but can't get compose rules 0.4.5 to work with ktlint-gradle 12.1.1 / ktlint 1.3.1