I have a simple parent project with modules/applications within it. My build tool of choice is gradle. The parent build.gradle
is defined below.
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
}
allprojects {
repositories {
mavenCentral()
}
version "0.1.0-SNAPSHOT"
}
What I would like to do is utilize the version attribute (0.1.0-SNAPSHOT) within my swing application. Specifically, I'd like it to display in the titlebar of the main JFrame. I expect to be able to do something like this.setTitle("My Application - v." + ???.version);
The application is a plain java project, but I'm not opposed to adding groovy support it it will help.
.properties
file that gets the version set dynamically (like example 1-8 in safaribooksonline.com/library/view/gradle-beyond-the/… )? – zapl Oct 8 '15 at 15:42