You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/03/08 12:48:09 UTC

(causeway-app-simpleapp) 02/03: adds support for maven timeline

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

danhaywood pushed a commit to branch CAUSEWAY-3692
in repository https://gitbox.apache.org/repos/asf/causeway-app-simpleapp.git

commit 3d78d120ae14e6f0ad1c3dec21e5822db1b3bcc0
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Mar 7 10:19:12 2024 +0000

    adds support for maven timeline
---
 .gitignore                                |  3 ++-
 pom.xml                                   | 12 +++++++++-
 serve-timeline.sh                         | 38 +++++++++++++++++++++++++++++++
 webapp/src/main/resources/application.yml |  8 +++++--
 4 files changed, 57 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5215e1a..96b519a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,4 +44,5 @@ translations.pot
 
 create-db-schema.sql
 
-test.http
\ No newline at end of file
+test.http
+node_modules
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 350add2..ee13913 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,10 +22,20 @@
         <java.version>21</java.version>
 
         <datasource-proxy-spring-boot-starter.version>1.8.1</datasource-proxy-spring-boot-starter.version>
+        <maven-timeline.version>1.8</maven-timeline.version>
         <sql-formatter.version>2.0.4</sql-formatter.version>
-
     </properties>
 
+    <build>
+        <extensions>
+            <extension>
+                <groupId>io.takari.maven</groupId>
+                <artifactId>maven-timeline</artifactId>
+                <version>${maven-timeline.version}</version>
+            </extension>
+        </extensions>
+    </build>
+
     <dependencyManagement>
         <dependencies>
 
diff --git a/serve-timeline.sh b/serve-timeline.sh
new file mode 100644
index 0000000..b4b9ff8
--- /dev/null
+++ b/serve-timeline.sh
@@ -0,0 +1,38 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+#
+# npm i -g serve
+# npm i -g local-ssl-proxy
+#
+
+# to use with Chromium, now need to:
+#
+# - re-enable WebSQLAccess (https://surajjadhav.me/blog/enabling-websql-access-in-chrome-119-and-beyond/)
+# - re-enable WebSQLNonSecureContextEnabled policy and acccess via https (https://stackoverflow.com/a/73153658)
+#
+
+
+# npm i -g local-web-server
+
+ws --https -d target/timeline/
+
diff --git a/webapp/src/main/resources/application.yml b/webapp/src/main/resources/application.yml
index 1e6cbbb..81dce3b 100644
--- a/webapp/src/main/resources/application.yml
+++ b/webapp/src/main/resources/application.yml
@@ -118,6 +118,9 @@ causeway:
         recreate: domainapp.webapp.application.fixture.scenarios.DomainAppDemo
         non-persisted-objects-strategy: persist
         multiple-execution-strategy: execute
+  value-types:
+    big-decimal:
+      allow-grouping-separator-when-parse: false
 
 eclipselink:
   # if enabled, then must be run with JVM arg:
@@ -139,13 +142,15 @@ server:
 spring:
   banner:
     location: banner.txt
-
   quartz:
     job-store-type: memory
   graphql:
     graphiql:
       enabled: true
       path: "/graphiql"
+    schema:
+      printer:
+        enabled: true
 
 management:
   endpoint:
@@ -206,4 +211,3 @@ management:
           - health
       discovery:
         enabled: false
-