tricktron / frege-gradle-plugin

Gradle plugin for compiling Frege projects
2 stars 1 forks source link

Gradle Tooling API Support #42

Closed tricktron closed 2 years ago

tricktron commented 2 years ago

The gradle tooling api allows to integrate the frege gradle plugin with the frege language server. The fregeProjectInfo class exposes the mainSourceDir extension property and the classpath of the configured frege project.

The Frege language server can then use the custom frege model to query the build.gradle file for the two exposed variables.

This means, that if you use the frege gradle plugin to set up your frege project, then the frege language server is automatically configured as well because it reuses the config!