MovingBlocks

Groovy: Add Meta Module Utility Commands

Terasology currently uses some utility commands written in Gradle (called by running gradlew X from the root directory) for various functions including fetching and managing modules. As Gradle is meant for building code it can become awkward for utility.

Enter Groovy. Earlier this year, we developed a Groovy wrapper which aims to solve most of the problems we had with utility in Gradle. All that is left to do now is to port the remaining old Gradle utility commands to Groovy.

Your task is to create a meta.groovy file that creates commands for meta modules (storage repositories, mostly hosted under MetaTerasology). Examples:

  • groovyw meta get WildAnimals will replace gradlew fetchMetaWildAnimals and will retrieve https://github.com/MetaTerasology/WildAnimals
  • groovyw facade create MyMeta will create a new local meta module (just an empty local git repository with a .gitignore)

Definition of "Done"

  • You have created a PR that adds the required commands which can can be used by running groovyw X from the home directory.

Where to start

  • Take a look at other Groovy commands to get an idea of how Groovy works. The module.groovy would be a good place to start.

Task tags

  • groovy
  • scripting
  • utility

Students who completed this task

Arpit Kamboj

Task type

  • code Code
close

2017