Jakob K

Results 132 comments of Jakob K

```kt plugins { kotlin("jvm") version "1.5.31" id("fabric-loom") version "0.10-SNAPSHOT" kotlin("plugin.serialization") version "1.5.31" id("org.jetbrains.compose") version "1.0.0-beta5" } repositories { mavenCentral() google() maven("https://maven.fabricmc.net/") mavenLocal() maven("https://oss.sonatype.org/content/repositories/snapshots") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") } val includeImplementation by configurations.creating {...

Yes I already tried that, but the custom configurations such as modImplementation etc are not available there.

> What are these custom functions for? They are [Gradle configurations](https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:what-are-dependency-configurations), `minecraft` specified the Minecraft dependency, `mappings` specifies the mappings for Minecraft and `modImplementation` adds Minecraft mods.

> As an option, you could split code in two modules. Use Compose+mpp plugin in one module and custom imports in another. I could do that, but I would still...

The simplest example would be just to try and shade the compose dependency using the Gradle shadow plugin in a JVM context. Not that I'd recommend this, but this will...

To trigger the problem: ```kt plugins { kotlin("jvm") version "1.6.10" id("org.jetbrains.compose") version "1.0.1-rc2" id("com.github.johnrengelman.shadow") version "7.1.1" } repositories { mavenCentral() google() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") } val embed: Configuration by configurations.creating dependencies {...

> I guess you meant don not provide. correct > What exactly is missing? The custom Gradle configurations (`minecraft`, `modImplementation`) and compatiblity with other Gradle plugins as shown in [my...

With release `1.0.1` the issue was resolved for the Compose dependencies themselves, but with `1.1.0` it was reintroduced, this time caused by the skiko dependency: ``` > Cannot choose between...

I tried to use a separate project with the Kotlin Multiplatform Gradle plugin, but the same issue comes up there as well. Asking more generally: How can I get a...

Related issue: https://github.com/JetBrains/skiko/issues/547 --- Generally speaking, the issue here is not if one uses the Kotlin Multiplatform plugin or not, but that Gradle does not have enough information about which...