tricktron / frege-gradle-plugin

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

Frege Gradle Plugin

build

Simplifies setting up your Frege project. This container is part of the Frege IDE.

Documentation

Head over to the Frege IDE docs website.

Installation

You need java >= 11 and gradle >= 7.

git clone https://github.com/tricktron/frege-gradle-plugin.git
./gradlew publishToMavenLocal

How to Use

  1. Specify the frege compiler release, version, main module and repl module file in your build.gradle:
plugins
{
    id 'ch.fhnw.thga.frege' version '4.1.0-alpha'
}

frege 
{
    version    = '3.25.84'
    release    = '3.25alpha'
    mainModule = 'examples.HelloFrege' // see runFrege task
    replModule = 'examples.HelloFrege' // see replFrege task
}

Then run

gradle initFrege
gradle runFrege

See the Frege Releases for all available versions.

Optional configuration parameters inside build.gradle:

Added Tasks

Dependencies

Dependencies can be configured as expected in your build.gradle file, using the frege scope, e.g.:

repositories {
    # Add your Frege repo here
}

dependencies {
    frege 'org.frege-lang:fregefx:0.8.2-SNAPSHOT'
}

Build Cache

The compileFrege task supports incremental builds from build cache. Enable the build cache by setting org.gradle.caching=true in your gradle.properites.

How to Contribute

Try to add another task, e.g. docFrege to the FregePluginFunctionalTest.java file and try to make the test pass.