serenadeai / java-tree-sitter

Java bindings for tree-sitter
MIT License
126 stars 35 forks source link

Publish to Maven Central #8

Open Flowdalic opened 2 years ago

Flowdalic commented 2 years ago

Judging from the project's build.gradle, java-tree-sitter was only published to bintray, which got closed down a few months ago. Please consider publishing the artifcats to Maven Central for easy consumption. Thanks.

thekalinga commented 2 years ago

Any update on this?

iocanel commented 2 years ago

@tmacwill: would it help if I contributed a github actions workflow for releasing to central?

thekalinga commented 2 years ago

I thinks its a good idea to explore Project Panama native APIs instead of this library as its Panama seems to be quite easy to work with & we dont have to handwrite code to work with native APIs (also helps us in keeping ourselves upto date with latest version of libraries).

https://denismakogon.github.io/openjdk/panama/2022/05/31/introduction-to-project-panama-part-1.html

iocanel commented 2 years ago

I think that publishing is one thing and native improvements is another. It seems to me that there are 1uite a few people that would like to use the project as is and are blocked by the lack of publicly artifacts.

tmacwill commented 2 years ago

sure, happy to review a PR for a github action to release to central. fwiw, I've been using jitpack:

allprojects {
    repositories {
        maven { 
            url 'https://jitpack.io'
        }
    }
}

dependencies {
    implementation "com.github.serenadeai:java-tree-sitter:1.1.2"
}

I can also add this to the README in the meantime, so it's clear how to use this package without installing from source.