{"id":13606089,"url":"https://github.com/typelead/gradle-eta","last_synced_at":"2025-10-10T12:18:55.541Z","repository":{"id":46207963,"uuid":"105694475","full_name":"typelead/gradle-eta","owner":"typelead","description":"Gradle plugin for the Eta programming language","archived":false,"fork":false,"pushed_at":"2021-11-06T22:32:35.000Z","size":553,"stargazers_count":30,"open_issues_count":20,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-05T22:41:59.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typelead.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T19:34:07.000Z","updated_at":"2024-06-23T21:30:40.000Z","dependencies_parsed_at":"2022-07-23T10:34:34.308Z","dependency_job_id":null,"html_url":"https://github.com/typelead/gradle-eta","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/typelead/gradle-eta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelead%2Fgradle-eta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelead%2Fgradle-eta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelead%2Fgradle-eta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelead%2Fgradle-eta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typelead","download_url":"https://codeload.github.com/typelead/gradle-eta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelead%2Fgradle-eta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003899,"owners_count":26083640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:01:05.912Z","updated_at":"2025-10-10T12:18:55.523Z","avatar_url":"https://github.com/typelead.png","language":"Java","funding_links":[],"categories":["Tools"],"sub_categories":["Talks"],"readme":"# Gradle Plugin for Eta\n\n[![CircleCI](https://circleci.com/gh/typelead/gradle-eta/tree/master.svg?style=shield)](https://circleci.com/gh/typelead/gradle-eta/tree/master)\n[![Gradle Plugin Portal](https://img.shields.io/badge/com.typelead.eta-0.8.1-green.svg?longCache=true\u0026style=plastic)](https://plugins.gradle.org/plugin/com.typelead.eta)\n[![Gradle Plugin Portal](https://img.shields.io/badge/com.typelead.eta.android-0.8.1-green.svg?longCache=true\u0026style=plastic)](https://plugins.gradle.org/plugin/com.typelead.eta.android)\n[![Gradle Plugin Portal](https://img.shields.io/badge/com.typelead.eta.base-0.8.1-green.svg?longCache=true\u0026style=plastic)](https://plugins.gradle.org/plugin/com.typelead.eta.base)\n\nA gradle plugin for building [Eta](http://eta-lang.org/) projects via the\n[Etlas](https://github.com/typelead/etlas) build tool.\n\n## Requirements\n\nThis plugin requires that Gradle 4.3+ is used.\n\n## Using the Plugin\n\n### Plugin DSL\n\n#### Eta Base Plugin\n\nThis is used for configuring your Eta/Etlas versions for your entire project. You can only do such configuration in the root project.\n\nNOTE: Both the Eta Plugin and the Eta Android Plugin apply the Eta Base Plugin by default, so if you import either one, it is not required to import this one!\n\n```gradle\nplugins {\n    id 'com.typelead.eta.base' version '0.8.1'\n}\n```\n\n#### Eta Plugin\n\nThis is used for standard JVM projects.\n\n```gradle\nplugins {\n    id 'com.typelead.eta' version '0.8.1'\n}\n```\n\n#### Eta Android Plugin\n\nThis is used for Android projects.\n\n```gradle\nplugins {\n    id 'com.typelead.eta.android' version '0.8.1'\n}\n```\n\n### Legacy Method\n\nBefore applying any of the plugins, you should add the following in the `build.gradle` for your root project.\n\n```gradle\nbuildscript {\n  repositories {\n    maven {\n      url 'https://plugins.gradle.org/m2/'\n    }\n  }\n  dependencies {\n    classpath 'gradle.plugin.com.typelead:gradle-eta:0.8.1'\n  }\n}\n```\n\n#### Eta Base Plugin\n\n```gradle\napply plugin: 'eta-base'\n```\n\n#### Eta Plugin\n\n```gradle\napply plugin: 'eta'\n```\n\n#### Eta Android Plugin\n\n```gradle\napply plugin: 'eta-android'\n```\n\n## Building from Source\n\nIf you're interested in hacking on the plugin or trying out the latest version, you can install it from source.\n\n### Source Installation\n\n```shell\ngit clone https://github.com/typelead/gradle-eta\ncd gradle-eta\n./gradlew pTML\n```\n\nThen, in your `build.gradle` you can add:\n\n\n```gradle\nbuildscript {\n  repositories {\n    mavenLocal()\n\n    dependencies {\n      classpath 'com.typelead:gradle-eta:latest.release'\n    }\n  }\n}\n```\n\n## Quick Start\n\n### Library\n\n```gradle\neta {\n  version = '0.7.2b1'\n  etlasVersion = '1.3.0.0'\n}\n```\n\n### Executable\n```gradle\napply plugin: 'application'\n\neta {\n  version = '0.7.2b1'\n  etlasVersion = '1.3.0.0'\n}\n```\n\n### Android Application\n\n```gradle\neta {\n  version = '0.7.2b1'\n  etlasVersion = '1.3.0.0'\n}\n```\n\nSee the `examples` and `src/test/testData` directories for more examples.\n\n## Configuration\n\nYou can use the top-level `eta` extension for some basic global configurations.\n\nNOTE: The `eta` extension is only available in the root project! It will not be \navailable in subprojects of a multi-module build because the configuration applies to \nall projects in the build.\n\nProperties:\n\n* `String version` - Version of Eta to use. The corresponding will binary will \n    automatically be downloaded.\n* `String etaPath` - Path to locally installed Eta binary. \n* `boolean useSystemEta` - If specified, attempts to resolve the eta binary on your system `PATH`.\n* `String etlasVersion` - Version of Etlas to use for this project. The Etlas binary\n    will automatically be downloaded and installed from the Etlas repository.\n* `String etlasRepo`, defaults to standard Etlas repository. Generally, there is no\n    reason to set this.\n* `String etlasPath` - Path to locally installed Etlas binary. It is recommended to\n    use `etlasRepo` and `etlasVersion` instead, leaving this unconfigured. It will be\n    dynamically set by Gradle if it was downloaded and installed.\n* `boolean useSystemEtlas` - If specified, attempts to resolve the etlas binary\n    on your system `PATH`.\n\n## Dependencies\n\nYou can add Eta dependencies (from Hackage or elsewhere) as follows:\n\n```gradle\ndependencies {\n    compile eta('text:1.2.2.2')\n}\n```\n\nThe general format is `eta([package-name]:[version-or-version-range])`.\n\n[Ivy version range notation](http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html) is supported.\n\n## Tasks\n\nThe Eta Gradle Plugin adds the following tasks:\n\n### Root Project Tasks\n\n* `:setupEnvironmentEta` - This task is attached to the root project and installs the necessary `eta` and `etlas` executables for your platform or uses the provided executables in the configuration.\n* `:resolveDependenciesEta` - This task is attached to the root project and makes sure all the projects in the build use a consistent set of Eta dependencies.\n\n### Per-Project, Per-SourceSet Tasks\n\n* `installDependencies\u003cSourceSet\u003eEta` - This task installs the Eta dependencies into the Etlas global cache and injects the paths to all the dependency jars into the corresponding Gradle configurations. This task is incremental and will only do work on the first run and every time the dependencies change.\n* `compile\u003cSourceSet\u003eEta` - This task performs incremental compilation of the corresponding source set. This task depends on `compile\u003cSourceSet\u003eJava` and will have the output of that task in its classpath.\n* `injectDependencies\u003cSourceSet\u003eEta` - This task injects Eta dependencies into non-Eta projects when non-Eta projects depend on Eta projects. This task is an implementation detail and you don't have to worry about it.\n\nFor the `main` source set, the tasks are `installDependenciesEta` and `compileEta`.\n\n### Conditional Tasks\n\nIf the `application` plugin is enabled as well, the `run` task will run the `main` function defined in `src/main/eta/Main.hs`.\n\n### Standard Tasks\n\nThe standard Gradle tasks like `build`, `assemble`, so on will work as expected and will trigger compilation of the required Eta source sets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelead%2Fgradle-eta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypelead%2Fgradle-eta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelead%2Fgradle-eta/lists"}