Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't pull in snapshot gradle plugin #1654

Closed
19lmyers opened this issue Feb 6, 2024 · 2 comments · Fixed by #1661
Closed

Can't pull in snapshot gradle plugin #1654

19lmyers opened this issue Feb 6, 2024 · 2 comments · Fixed by #1661

Comments

@19lmyers
Copy link

19lmyers commented Feb 6, 2024

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

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

@19lmyers 19lmyers added the T-Bug label Feb 6, 2024
@19lmyers 19lmyers changed the title Can't pull in snapshot Can't pull in snapshot gradle plugin Feb 6, 2024
@nhachicha
Copy link
Collaborator

Hi @19lmyers this is a bug in the maven publish plugin we use in Github Action, I'm working on a fix. In the meantime I manually published 1.14.0-TEST-SNAPSHOT (it doesn't have windows and Linux JVM targets) but it should cover your Android/iOS dependencies. Let me know if this works 👍

@nhachicha nhachicha self-assigned this Feb 14, 2024
@19lmyers
Copy link
Author

It worked, thank you!

@sync-by-unito sync-by-unito bot reopened this Feb 17, 2024
@sync-by-unito sync-by-unito bot closed this as completed Feb 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants