antlr / antlr4-intellij-adaptor

A library to support the use of ANTLR grammars in jetbrains IDE plugins for building custom languages.
BSD 2-Clause "Simplified" License
212 stars 38 forks source link

Move to a Gradle build #13

Closed bjansen closed 5 years ago

bjansen commented 5 years ago

I converted the project to Gradle. It will automatically download the IntelliJ SDK and build the jar. I also configured to build to publish the jar in Maven repositories.

I was able to install the artifact in my local Maven repo, then import it in intellij-plugin-v4 to use that library instead of the current source files in org.antlr.intellij.adaptor. I'll provide a separate PR when/if this library ends up in a public repo.

I still need to make a few tweaks to the build to be able to publish to Central though. @parrt how do you usually publish stuff to Central? Using the Sonatype OSS repo?

bjansen commented 5 years ago

I also configured a Travis CI build to make sure the library works in various versions of the IntelliJ SDK.

https://travis-ci.org/bjansen/jetbrains

parrt commented 5 years ago

thanks! added you as collaborator with write.

bjansen commented 5 years ago

Great! How do you usually deploy artifacts to Central? I'd like to improve the build to publish the jar automatically.

parrt commented 5 years ago

I follow procedure I doc'd for antlr: https://github.com/antlr/antlr4/blob/master/doc/releasing-antlr.md