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

How to use #7

Open
gavr123456789 opened this issue Mar 8, 2022 · 0 comments
Open

How to use #7

gavr123456789 opened this issue Mar 8, 2022 · 0 comments

Comments

@gavr123456789
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant