From 12a76a6228b35c19f7ad88ed46bbb239bd7bff39 Mon Sep 17 00:00:00 2001 From: slominskir Date: Thu, 13 Jun 2024 14:33:12 -0400 Subject: [PATCH] Version from file --- VERSION | 1 + build.gradle | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..507266b --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.17.1 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 55d1678..08b555e 100644 --- a/build.gradle +++ b/build.gradle @@ -5,12 +5,9 @@ plugins { description = "EPICS to web gateway" group 'org.jlab' -version '1.17.1' - -ext { - releaseDate = 'Feb. 14 2024' - productionRelease = 'true' -} +version new File("${projectDir}/VERSION").text.trim() +ext.releaseDate = new Date().format('MMM dd yyyy') +ext.productionRelease = 'true' compileJava { options.release = 8