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

Kotlin multi platform: Could not resolve io.github.tree-sitter:ktreesitter #45

Open
smyrgeorge opened this issue Jan 31, 2025 · 2 comments · May be fixed by #49
Open

Kotlin multi platform: Could not resolve io.github.tree-sitter:ktreesitter #45

smyrgeorge opened this issue Jan 31, 2025 · 2 comments · May be fixed by #49
Labels
build Related to building/publishing

Comments

@smyrgeorge
Copy link

Hello!

I have the following build.gradle.kts file:

plugins {
    kotlin("multiplatform") version "2.0.0"
}

group = "io.github.smyrgeorge"
version = "0.1.0"

repositories {
    mavenCentral()
}

kotlin {
    macosArm64 { binaries { executable() } }
    applyDefaultHierarchyTemplate()
    sourceSets {
        val nativeMain by getting {
            dependencies {
                implementation("io.github.tree-sitter:ktreesitter:0.24.1")
            }
        }
    }
}

When I'm trying to build the project I'm getting the following error:

nativeMain: Could not resolve io.github.tree-sitter:ktreesitter:0.24.1.

Any idea why is this happening?
I saw that the project is built for KMP. But I think there is an issue with publishing.

@ObserverOfTime
Copy link
Member

Are you using Kotlin 2?

@smyrgeorge
Copy link
Author

smyrgeorge commented Feb 1, 2025

Thanks for your reply.
Yes kotlin 2, but I also tried with kotlin 1.9.25

@ObserverOfTime ObserverOfTime added the build Related to building/publishing label Feb 1, 2025
@ObserverOfTime ObserverOfTime linked a pull request Feb 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building/publishing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants