Zsolt.bertalan
05/22/2024, 4:19 PMKenneth Geisshirt
05/23/2024, 12:11 PMYannick Pulver
05/23/2024, 3:17 PMNabil
05/24/2024, 12:13 PM2.0.0-SNAPSHOT
) with support of K2
compiler. Please give it a try and report any issue before we include this into the next major release.
Here’s a sample app using it https://github.com/realm/realm-kotlin-samples/pull/48John O'Reilly
05/24/2024, 5:28 PM<https://oss.sonatype.org/content/repositories/snapshots>
is correct repository for that snapshot?
Plugin [id: 'io.realm.kotlin', version: '2.0.0-SNAPSHOT'] was not found in any of the following sources:
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'io.realm.kotlin', version: '2.0.0-SNAPSHOT'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'io.realm.kotlin:io.realm.kotlin.gradle.plugin:2.0.0-SNAPSHOT')
Searched in the following repositories:
Google
MavenRepo
Gradle Central Plugin Repository
maven(<https://oss.sonatype.org/content/repositories/snapshots>)
Claus Rørbech
05/24/2024, 5:36 PMid(...)
) is not published to the snapshot repository. So you would have to reference the actual maven coordinates directly. Easiest thing is to add it to the classpath in the project level Gradle file as It's done here and then you can apply it by id("io.realm.kotlin")
in the subprojects.John O'Reilly
05/24/2024, 5:47 PMJohn O'Reilly
05/24/2024, 5:55 PMsettings.gradle.kts
and still seeing that ...I also tried putting that in root build.gradle.kts
but didn't help
rootProject.name = "BikeShare"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
google {
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
mavenCentral()
gradlePluginPortal()
maven("<https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>")
maven("<https://oss.sonatype.org/content/repositories/snapshots>")
}
}
dependencyResolutionManagement {
repositories {
google {
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
mavenCentral()
maven("<https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>")
maven("<https://oss.sonatype.org/content/repositories/snapshots>")
}
}
buildscript {
dependencies {
classpath("io.realm.kotlin:gradle-plugin:2.0.0-SNAPSHOT")
}
}
include(":androidApp")
include(":common")
include(":compose-desktop")
include(":compose-web")
John O'Reilly
05/24/2024, 6:00 PMYannick Pulver
05/24/2024, 6:01 PMbuildscript {
dependencies {
classpath("io.realm.kotlin:gradle-plugin:2.0.0-SNAPSHOT")
}
}
module/build.gradle.kts
plugins {
id("io.realm.kotlin")
}
...
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0,TimeUnit.SECONDS)
}
settings.gradle.kts
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
maven {
url = uri("<https://oss.sonatype.org/content/repositories/snapshots>")
}
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("<https://oss.sonatype.org/content/repositories/snapshots>")
}
}
}
Claus Rørbech
05/24/2024, 6:05 PMJohn O'Reilly
05/24/2024, 6:06 PMJohn O'Reilly
05/24/2024, 6:07 PMid("io.realm.kotlin")
instead of alias(libs.plugins.realm.kotlin)
seems to make a difference all rightJohn O'Reilly
05/24/2024, 6:11 PMThe Compose Compiler requires the Compose Runtime to be on the class path, but none could be found
buildscript {
dependencies {
classpath("io.realm.kotlin:gradle-plugin:2.0.0-SNAPSHOT")
}
}
Claus Rørbech
05/24/2024, 6:23 PMJohn O'Reilly
05/24/2024, 6:24 PMClaus Rørbech
05/24/2024, 6:29 PMJohn O'Reilly
05/24/2024, 7:10 PMJohn O'Reilly
05/24/2024, 7:28 PMZsolt.bertalan
05/24/2024, 7:36 PMZsolt.bertalan
05/24/2024, 7:37 PMJohn O'Reilly
05/24/2024, 7:37 PMJohn O'Reilly
05/25/2024, 3:23 AMbuildSrc
but still seeing same issue (updated branch with changes)....it's not helping that I'm changing other things at the same time so could very likely be related to those changes as well.....I'll see if I can get it working with existing stable version of realm (not sure though if that's possible using Kotlin 2.0)John O'Reilly
05/25/2024, 5:08 AMClaus Rørbech
05/25/2024, 9:05 AMHave you both applied theThe Compose Compiler requires the Compose Runtime to be on the class path, but none could be found
org.jetbrains.compose
and the org.jetbrains.kotlin.plugin.compose
plugin?John O'Reilly
05/25/2024, 9:06 AMJohn O'Reilly
05/25/2024, 9:06 AMJohn O'Reilly
05/25/2024, 9:07 AMBerkeli Alashov
05/28/2024, 7:02 PM