#### Versioning Basics

Griffon has built in support for application versioning. When you first create an application with the create-app command the version of the application is set to `0.1`. The version is stored in the application meta data file called `application.properties` in the root of the project.

To change the version of your application you can run the set-version command:

    griffon set-version 0.2

The version is used in various commands including the package command which will append the application version to the end of the created distribution zip files.

#### Detecting Versions at Runtime

You can detect the application version using Griffon' support for application metadata using the app class. For example within controllers there is an implicit app variable that can be used:

    def version = app.metadata['app.version']

If it is the version of Griffon you need you can use:

    def griffonVersion = app.metadata['app.griffon.version']