From 2b676a1cc77df2643933154e701b4044c124ae4a Mon Sep 17 00:00:00 2001 From: ryans Date: Tue, 5 Nov 2024 16:40:12 -0500 Subject: [PATCH] Use VERSION file --- VERSION | 1 + build.gradle | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..28cbf7c --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +5.0.0 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 4d0e30d..0cf8270 100644 --- a/build.gradle +++ b/build.gradle @@ -7,11 +7,8 @@ plugins { description = "Jefferson Lab logbook API" group 'org.jlab' -version = '5.0.0' - -ext { - releaseDate = 'April 05 2020' -} +version new File("${projectDir}/VERSION").text.trim() +ext.releaseDate = new Date().format('MMM dd yyyy') tasks.withType(JavaCompile) { options.release = 11