Christian Lippka
09/18/2022, 3:59 PMBig Chungus
09/18/2022, 4:07 PMhfhbd
09/18/2022, 4:08 PMBig Chungus
09/18/2022, 4:08 PMChristian Lippka
09/18/2022, 4:09 PMBig Chungus
09/18/2022, 4:10 PMhfhbd
09/18/2022, 4:10 PMChristian Lippka
09/18/2022, 4:11 PMBig Chungus
09/18/2022, 4:12 PMChristian Lippka
09/18/2022, 4:14 PMChristian Lippka
09/18/2022, 4:43 PMUnable to find method ''void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)''
'void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)'
issue which I found some hits on the web but all seem to refer to issues with older non stable kotlin versions. Any help is appreciated.
I would also not mind switching to 1.7.20-beta and 1.2.0-beta1 if possible as this is not yet for productionhfhbd
09/18/2022, 4:53 PMChristian Lippka
09/18/2022, 5:01 PMid("org.jetbrains.compose") version "1.2.0-beta1"
and changing nothing else I get
Build file '/Users/christian/Workspace/jvm-js-fullstack/build.gradle.kts' line: 11
Plugin [id: 'org.jetbrains.compose', version: '1.2.0-beta1'] was not found in any of the following sources:
does 1.2.0-beta1 have a different id or path? thanks for your helphfhbd
09/18/2022, 5:10 PMpluginManagement {
repositories {
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
google()
gradlePluginPortal()
}
}
Christian Lippka
09/18/2022, 5:27 PMimplementation(compose.web.core)
implementation(compose.runtime)
to
val jsMain by getting {
dependencies {
my gradle sync runs without issues. But once I add them I get the following
A problem occurred configuring root project 'shoppinglist'.
> Could not resolve all dependencies for configuration ':jsCompileClasspath'.
> Could not resolve org.jetbrains.compose.web:web-core:1.2.0-beta01.
Required by:
project :
> No matching variant of org.jetbrains.compose.web:web-core:1.2.0-beta01 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'legacy' but:
- Variant 'jsApiElements-published' capability org.jetbrains.compose.web:web-core:1.2.0-beta01 declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.js.compiler' with value 'legacy'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Variant 'jsRuntimeElements-published' capability org.jetbrains.compose.web:web-core:1.2.0-beta01 declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js':
- Incompatible because this component declares a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.js.compiler' with value 'legacy'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Variant 'jvmApiElements-published' capability org.jetbrains.compose.web:web-core:1.2.0-beta01 declares an API of a library:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'legacy')
- Variant 'jvmRuntimeElements-published' capability org.jetbrains.compose.web:web-core:1.2.0-beta01 declares a runtime of a library:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'legacy')
- Variant 'metadataApiElements' capability org.jetbrains.compose.web:web-core:1.2.0-beta01 declares a library:
- Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'legacy')
same for runtimehfhbd
09/18/2022, 5:28 PMjs {
as target, which still uses the legacy js backend. Use js(IR) {
in line 30 to use the IR based backend. The Compose compiler only supports the IR backend.Christian Lippka
09/18/2022, 5:40 PMChristian Lippka
09/18/2022, 5:42 PMhfhbd
09/18/2022, 5:43 PMFrancis Mariano
09/20/2022, 1:34 AMhfhbd
09/20/2022, 6:44 AM