How to find your current project versions in grails

I want to know the version of software used in developing a project. Suppose if an existing In grails project exists, so I want to know the version of grails as well as the Groovy version for this project

+4
source share
6 answers

Project metadata in Grails is stored in application.properties.

In this file you will find the version of Grails used for the project under the key app.grails.version.

The version of Groovy used is not saved in this file and is determined by the version of Grails used. To determine the version of Groovy used by a specific version of Grails, visit the Grails documentation insertion section .

change

, Grails, Groovy, Grails.

*

$ cd grails-X.X.X 
$ find . -name "groovy*jar"

win32

> cd grails-x.x.x
> dir /s "groovy*.jar"
+3

/:

def appVersion=Metadata.current.'app.grails.version'
def appName=Metadata.current.'app.name'

gsp:

App Version <g:meta name="app.version"/> 
Built with Grails <g:meta name="app.grails.version"/> 

​​ Grails :

grails 3, build.gradle :

"0.1" grails 3 0,1

Grails 3.1.1 gradle.properties

grails 2 application.properties :

grails 2

grails 2.4.4 0.1

+3

application.properties grails

0

, groovy grails, find:

$ cd grails-X.X.X 
$ find . -name "groovy*jar"

, , ...; -)

0

, Grails, application.properties grails

0

Grails 3, :

Version <g:meta name="info.app.version"/>

. http://docs.grails.org/3.0.17/ref/Tags/meta.html

0

Source: https://habr.com/ru/post/1542644/


All Articles