-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started For Server
Eric Lam edited this page Oct 28, 2024
·
1 revision
To grab artifacts from the GitHub maven package to get groovier-script
dependencies (which is preset), go to ~/.groovy
(or specific .groovy
directory) to create a file called grapeConfig.xml
~/.groovy/grapeConfig.xml
<ivysettings>
<settings defaultResolver="downloadGrapes"/>
<!-- add github credentials here -->
<credentials host="maven.pkg.github.com" realm="GitHub Package Registry" username="GITHUB_USERNAME" passwd="GITHUB_PAT" />
<resolvers>
<chain name="downloadGrapes" returnFirst="true">
<filesystem name="cachedGrapes">
<ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
<artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"/>
</filesystem>
<ibiblio name="localm2" root="${user.home.url}/.m2/repository/" checkmodified="true" changingPattern=".*" changingMatcher="regexp" m2compatible="true"/>
<!-- TODO: add 'endorsed groovy extensions' resolver here -->
<ibiblio name="ibiblio" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>
- GITHUB_USERNAME: use the github username (not display name)
- GITHUB_PAT: personal access token with read packages permission
-
Script Development
-
Adding Scripts
-
API Development