From 80e6f9e81801a2e81285fe298b3e5f20f52970e2 Mon Sep 17 00:00:00 2001 From: xis Date: Thu, 26 Oct 2023 18:46:12 +0200 Subject: [PATCH] banner and version added --- build.gradle | 5 +++++ src/main/resources/application.yml | 22 ++++++++++++---------- src/main/resources/banner.txt | 7 +++++++ 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 src/main/resources/banner.txt diff --git a/build.gradle b/build.gradle index bbec057..230ed64 100644 --- a/build.gradle +++ b/build.gradle @@ -91,3 +91,8 @@ tasks.register('integrationTest', Test) { check.dependsOn integrationTest +processResources { + filesMatching('**/application.yml') { + expand(project.properties) + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f116b70..e2be49b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,19 +1,21 @@ server: - port: ${NEXTCLOUD_DLNA_SERVER_PORT:8080} - interface: ${NEXTCLOUD_DLNA_INTERFACE:} - friendlyName: ${NEXTCLOUD_DLNA_FRIENDLY_NAME:Nextcloud-DLNA} + port: \${NEXTCLOUD_DLNA_SERVER_PORT:8080} + interface: \${NEXTCLOUD_DLNA_INTERFACE:} + friendlyName: \${NEXTCLOUD_DLNA_FRIENDLY_NAME:Nextcloud-DLNA} nextcloud: - filesDir: ${NEXTCLOUD_DATA_DIR} + filesDir: \${NEXTCLOUD_DATA_DIR} db: - type: ${NEXTCLOUD_DB_TYPE:mariadb} - host: ${NEXTCLOUD_DB_HOST:localhost} - port: ${NEXTCLOUD_DB_PORT:3306} - name: ${NEXTCLOUD_DB_NAME:nextcloud} - user: ${NEXTCLOUD_DB_USER:nextcloud} - pass: ${NEXTCLOUD_DB_PASS:nextcloud} + type: \${NEXTCLOUD_DB_TYPE:mariadb} + host: \${NEXTCLOUD_DB_HOST:localhost} + port: \${NEXTCLOUD_DB_PORT:3306} + name: \${NEXTCLOUD_DB_NAME:nextcloud} + user: \${NEXTCLOUD_DB_USER:nextcloud} + pass: \${NEXTCLOUD_DB_PASS:nextcloud} spring: + application: + version: ${version} jpa: hibernate: ddl-auto: none diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..7faea76 --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,7 @@ + _ _ _ _ _ + _ __ _____ _| |_ ___| | ___ _ _ __| | __| | |_ __ __ _ + | '_ \ / _ \ \/ / __/ __| |/ _ \| | | |/ _` |_____ / _` | | '_ \ / _` | + | | | | __/> <| || (__| | (_) | |_| | (_| |_____| (_| | | | | | (_| | + |_| |_|\___/_/\_\\__\___|_|\___/ \__,_|\__,_| \__,_|_|_| |_|\__,_| + +ver: ${spring.application.version} (powered by Spring Boot ${spring-boot.version}) \ No newline at end of file