This Gradle plugin allows you to add your gradle project version to your application.properties
file.
- Add the plugin to your project
plugins {
id("io.github.massicer.project_version_plugin") version "<CURRENT_VERSION>"
}
- Create the properties file if it doesn't already exist
touch {your_project_path}/src/main/resources/application.properties
- Execute the task
./gradlew extract_version