Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-1018

Can't pull in snapshot gradle plugin

      How frequently does the bug occur?

      Always

      Description

      I can't get my multiplatform project (targets iOS and Android) to pick up the snapshot version of the gradle plugin or library. For some reason, it tries to download a snapshot that isn't present in the repository.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      A problem occurred configuring root project 'Taskify'.
      > Could not resolve all files for configuration ':classpath'.
         > Could not find io.realm.kotlin:gradle-plugin:1.14.0-SNAPSHOT.
           Searched in the following locations:
             - https://oss.sonatype.org/content/repositories/snapshots/io/realm/kotlin/gradle-plugin/1.14.0-SNAPSHOT/maven-metadata.xml
             - https://oss.sonatype.org/content/repositories/snapshots/io/realm/kotlin/gradle-plugin/1.14.0-SNAPSHOT/gradle-plugin-1.14.0-20240131.082859-13.pom
      

      Can you reproduce the bug?

      Always

      Reproduction Steps

      libs.versions.toml:

      realm-gradle-plugin = { module = "io.realm.kotlin:gradle-plugin", version.ref = "realm" }
      
      realm-base = { module = "io.realm.kotlin:library-base", version.ref = "realm" }
      realm-sync = { module = "io.realm.kotlin:library-sync", version.ref = "realm" }
      

      root build.gradle:

      buildscript {
          repositories {
              maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
          }
          dependencies {
              classpath(libs.realm.gradle.plugin)
          }
      }
      

      module build.gradle:

      plugins {
          id("io.realm.kotlin")
      }
      
      kotlin {
          androidTarget()
      
          iosX64()
          iosArm64()
          iosSimulatorArm64()
      
          sourceSets {
              commonMain.dependencies {
                  implementation(libs.realm.base)
                  implementation(libs.realm.sync)
              }
          }
      }
      

      Version

      1.14.0-SNAPSHOT

      What Atlas App Services are you using?

      Atlas Device Sync

      Are you using encryption?

      No

      Platform OS and version(s)

      N/A

      Build environment

      Android Studio version: Iguana 2023.2.1 RC 1
      Android Build Tools version: 8.3.0-rc01
      Gradle version: 8.5

            Assignee:
            nabil.hachicha@mongodb.com Nabil Hachicha
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: