Gradle Plugin Cheatsheet

A quick reference for gradle-eta plugin

Input and Output


      module Main where
      main :: IO ()
      main = putStrLn "Hello World!"
  

Basics

Gradle Assemble

$ ./gradlew assemble

Gradle Build

$ ./gradlew build

Gradle Test

$ ./gradlew test

Add the gradle wrapper to the project

$ gradle wrapper --gradle-version 4.7

Configuring Gradle DSL

Eta Plugin

This is used for standard JVM projects

plugins {
    id 'com.typelead.eta' version '0.6.0'
}

Eta Base Plugin

This is used for configuring your Eta versions for your entire project

plugins {
  id 'com.typelead.eta.base' version '0.6.0'
}

Library

eta {
    version = '0.8.6b1'
    etlasVersion = '1.5.0.0'
}

Excecutable

apply plugin: 'application'

eta {
  version = '0.8.6b1'
  etlasVersion = '1.5.0.0'
}

Configuring Dependencies

One dependency

dependencies {
  compile eta('base:4.8.2.0')
}

Two dependencies

dependencies {
  compile eta('base:4.8.2.0')
  compile eta('array:0.5.2.0')
}
          

Alternative for two dependencies

dependencies {
  compile eta('base:4.8.2.0', 'array:0.5.2.0')
}