(Quick Reference)

1.1.1 Buildtime - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

1.1.1 Buildtime

New Commands

list-templates

This command lists all artifact templates available to the current project. Here's for example, the output generated by this command after an application has been created

--------------------------------------------------------------------------------
Location                 Name                          FileType
--------------------------------------------------------------------------------
application              <none>
-- Plugins ---------------------------------------------------------------------
swing-1.1.0              Controller                    groovy, java
                         DialogController              groovy, java
                         DialogModel                   groovy, java
                         DialogView                    groovy, java
                         Model                         groovy, java
                         View                          groovy, java
-- Archetypes ------------------------------------------------------------------
default                  GriffonAddon                  groovy, java
                         IntegrationTests              groovy, java
                         Model                         groovy, java
                         Script                        groovy
                         ScriptTests                   groovy
                         Service                       groovy, java
                         ShellCommand                  java
                         ShellHelp                     txt
                         Tests                         groovy, java

upload-release

Release packages may be downloaded from Remote Artifact Repositories, however there was no option for upload a release package to a particular repository until now. This command can upload a release package to any repository supported by the Griffon buildtime.

wrapper

This command generates or updates the files required by the Griffon wrapper in order to run. These files were previously created during the initialization of a project or an upgrade sequence.

Toolkit Aware Plugin Install

Griffon supports several UI toolkits for which many plugins may exist. Some of these plugins provide the same behavior but targeting a different UI toolkit, for example miglayout (swing) vs. miglayout-javafx (javafx). Now, every Griffon application has a default UI toolkit specified in its metadata; this fact makes it possible to simplify plugin installation by only specifying the common plugin name, that is, the following command

griffon install-plugin miglayout

will install miglayout-javafx if the application has javafx defined as its UI toolkit. On the other hand, it will install miglayout if the UI toolkit is swing.

Griffon Usage Tracking

An opt-in usage tracking system has been put into place in order to monitor the development of the Griffon community and help drive the roadmap for future features. All information is anonymized; usage tracking can be disabled/enabled at any time. Verifying the current status of usage tracking is done by invoking this command

griffon usage-stats

Enabling or disabling usage tracking is done with

griffon usage-stats --enabled=[true|false]

Usage tracking is turned off automatically if running in offline mode.

Intellij IDEA DSL Support

The Swing GDSL provided by the swing plugin has been updated to support named parameters for all nodes.

Eclipse STS DSLD Support

The Swing DSLD provided by the swing plugin has been upgraded and is now compatible with the latest definitions provided by STS.

Platform Specific Packaging

Until now, calling `griffon package` create platform specific packages depending on the currently running platform. Thus, if additional packages were needed developers had to run Griffon on different platforms. The `package` command accepts a new flag that defines the target platform to use. For example, packaging for Windows64 when running on OSX is done by invoking the following command

griffon package --platform=windows64

Be advised that previously built packages will be cleared when this command is issued. This is to assert no artifacts leak from previous builds.

Enhanced Plugin/Archetype info command

Both plugin-info and archetype-info will display full plugin/archetype description by default. You may specify a --skip-description flag if you do not want to see the artifact's description.