From 1e50ca3b4b6b7194bcac5d2b9e6a5ce9e8a328ef Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sat, 15 Jun 2019 15:20:09 -0400 Subject: [PATCH] Added a version file for easier management of versions --- VERSION | 1 + build.gradle.kts | 4 ++-- justfile | 7 ++++++- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..d917d3e --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.2 diff --git a/build.gradle.kts b/build.gradle.kts index a45885e..6637dae 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "com.anthonycicchetti" -version = "0.1.2" +version = file("VERSION").readText().trim() repositories { mavenCentral() @@ -36,4 +36,4 @@ tasks.withType { testLogging { events("passed", "skipped", "failed") } -} \ No newline at end of file +} diff --git a/justfile b/justfile index 578e23e..470bba3 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,11 @@ +version := `cat VERSION` + push: build - scp ./build/libs/slackmemes-0.1.0-all.jar anthonycicchetti.com:/home/slackbot/slackbot.jar + scp ./build/libs/slackmemes-{{version}}-all.jar anthonycicchetti.com:/home/slackbot/slackbot.jar ssh anthonycicchetti.com "service slackbot restart" build: ./gradlew shadowJar + +print_version: + @echo "{{version}}"