Did the plugin id change for 1.5.0? Getting the fo...
# compose-desktop
e
Did the plugin id change for 1.5.0? Getting the following error in a project where the only change is bumping the version from 1.4.3 to 1.5.0
Copy code
Plugin [id: 'org.jetbrains.compose'] was not found in any of the following sources:
Here's the
pluginManagement
from settings
Copy code
pluginManagement {
  repositories {
    google {
      content {
        includeGroupByRegex("com\\.google.*")
        includeGroupByRegex("com\\.android.*")
        includeGroupByRegex("androidx.*")
      }
    }
    gradlePluginPortal()
    mavenCentral()
    maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev|https://maven.pkg.jetbrains.space/public/p/compose/dev>") {
      content {
        includeGroupByRegex("org\\.jetbrains\\.compose.*")
      }
    }
  }
}
a
It didn’t. Works fine for me with
Copy code
buildscript{
    repositories {
        google()
        gradlePluginPortal()
        maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
    }
}

plugins {
    kotlin("jvm") version "1.9.0"
    id("org.jetbrains.compose") version "1.5.0"
}
e
Oh maybe it wasn't published to space?
a
How would it work for me then?
e
It looks like the gradlePluginPortal is resolving it, but since I have my repositories configured to use space for org.jetbrains.compose.*, it'll only use space to try and resolve it.
a
That would be surprising
That it doesn’t look up in the order it’s specified
e
I think that's how it works. If you specify an inclusion, it means that only that repo will be used to resolve anything that matches the inclusion.
a
Asking…
e
inclusions are extensive, meaning that anything which doesn't match the includes will be considered missing from the repository.
From Gradle docs
a
That doesn’t seem to imply that it won’t look it up in a different repository
e
Sorry, I copied the wrong docs
If includes are added, then if the module doesn't match any of the includes, it's excluded
I thought maybe this one but it doesn't fully explain the behavior. In any case 1.5.0 is present in Space so I'm not sure why I'm having this issue 🤔
That error was a red herring. There was something added to KotlinCompilerPluginSupportPlugin which I subclass in some cases, so I have to add that. Looks like the plugin error is related to a precompiled script plugin that I have (and isn't actually an error)