This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch jpa-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/causeway-app-helloworld.git


The following commit(s) were added to refs/heads/jpa-SNAPSHOT by this push:
     new dcaf80b  fixes syntax error in application.yml
dcaf80b is described below

commit dcaf80b0b5da4d4b3bb9530e59297ff92dbefa71
Author: Andi Huber <[email protected]>
AuthorDate: Thu May 11 06:25:02 2023 +0200

    fixes syntax error in application.yml
---
 pom.xml                            | 2 ++
 src/main/resources/application.yml | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 787e116..5ec57dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,6 +21,8 @@
 
     <properties>
         <java.version>11</java.version>
+               <!-- 
https://stackoverflow.com/questions/38983934/cannot-get-maven-project-version-property-in-a-spring-application-with-value/38983935#38983935
 -->
+               <resource.delimiter>^</resource.delimiter>
     </properties>
 
     <build>
diff --git a/src/main/resources/application.yml 
b/src/main/resources/application.yml
index 3e7d141..8116b11 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -35,7 +35,7 @@ causeway:
         menubars-layout-file: menubars.layout.xml
         name: Hello World App
         # https://stackoverflow.com/a/38983935/56880
-        version: @project.version@
+        version: ^project.version^
       credit:
         - url:  https://causeway.apache.org
           image: images/apache-causeway/logo-65x48.png

Reply via email to