Skip to content

How to use #7

@gavr123456789

Description

@gavr123456789

Maybe this is a stupid question, but I've never used Grande. Can you make a step by step instruction what to do after creating a console hello world project on kotlin to use tree sitter?

Here how my build.grandle.kts looks now

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm") version "1.6.10"
    application
}

group = "me.gavr"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}



tasks.withType<KotlinCompile>() {
    kotlinOptions.jvmTarget = "1.8"
}

dependencies {
    implementation("io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT")
}

application {
    mainClass.set("MainKt")
}

Error:

Could not find io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/io/github/oxisto/kotlin-tree-jna/0.0.0-SNAPSHOT/maven-metadata.xml
  - https://repo.maven.apache.org/maven2/io/github/oxisto/kotlin-tree-jna/0.0.0-SNAPSHOT/kotlin-tree-jna-0.0.0-SNAPSHOT.pom

I build project with ./gradlew build

2194 warnings generated.

BUILD SUCCESSFUL in 5m 5s
12 actionable tasks: 12 executed

Then as I undestand I need to use ./gradlew publishToMavenLocal. but it fails:

~/b/L/kotlintree-main> ./gradlew build./gradlew publishToMavenLocal

FAILURE: Build failed with an exception.

* What went wrong:
Task 'build./gradlew' not found in root project 'kotlin-tree'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> 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

BUILD FAILED in 696ms

And there really nothing in build folder:

~/b/L/k/build> tree .
.
└── kotlin
    └── sessions

2 directories, 0 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions