3.4 Versioning - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
3.4 Versioning
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 to0.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
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']
def griffonVersion = app.metadata['app.griffon.version']