tricktron / frege-gradle-plugin

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

Add support for the frege-intellij plugin #35

Open nea89o opened 2 years ago

nea89o commented 2 years ago

This commit adds support for the frege intellij plugin by

As to why this PR is neccessary / addressing some of the questions asked in the last PR:

The intellij-frege plugin (https://github.com/IntelliJ-Frege/intellij-frege) uses a build.gradle that contains all the download+build+repl+etc code, and ive been using this plugin as a substitute for that. However, this plugin and the generated build.gradle have a few differences (mainly: fregeRun vs runFrege, and specifying the project property class_name to run a specific module when using the green run arrow), so i added those two changes to the runFrege task.

In addition to that i make both the frege jar and frege dependencies available on the java classpath, since that way they are per default included in the application plugin / shadow jar plugin and that way they are also indexed by intellij.

To that end, i also make the classes task depend on compileFrege so that frege compilation output is captured in the project jar.