MovingBlocks
Groovy: Add Library Utility Commands
Add Library Utility Commands to Groovy
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 lib.groovy
file that creates commands for retrieving and creating libraries.
Examples:
groovyw lib get CrashReporter
will replacegradlew fetchLibCrashReporter
and will retrieve https://github.com/MovingBlocks/CrashReportergroovyw facade create MyLib
will create a new local library named "MyLib"
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
Students who completed this task
Arpit Kamboj