Correction: I’m using the following plugins: ```p...
# compose-desktop
f
Correction: I’m using the following plugins:
Copy code
plugins {
    val kotlinVersion = "1.5.21"
    kotlin("jvm") version kotlinVersion
    kotlin("kapt") version kotlinVersion
    id("org.jetbrains.compose") version "0.5.0-build262"
}
But the @Preview - Annotation is not found anymore. How can I solve this?
f
I’m using alpha-4 already
x
version of the plugin and version of the library are two different things
f
ok
so what should I fix?
I’ve updated to:
Copy code
id("org.jetbrains.compose") version "1.0.0-alpha3"
but still the problem persists
x
should only need to specify the plugin dependency in the root build script
Copy code
buildscript {
  repositories {
    ...
    maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
    ...
  }

  dependencies {
    ...
    classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.0-alpha2")
    ...
  }
}
and then use the plugin without needing to specify a version in the module
Copy code
plugins {
  ...
  id("org.jetbrains.compose")
}
f
I copied some parts of the gradle-buildscript over from a other project where it worked. And irt works now here too.
👍 1