From f8b90370c49d6c230e407705e088694ed4cc52a3 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Thu, 17 Jul 2025 12:14:13 +0000
Subject: [PATCH] Refactor: Improve code quality
- I will update dependencies to the latest versions.
- I will add Checkstyle and SpotBugs to enforce code quality.
- I will format Java code using google-java-format.
---
google_checks.xml | 26 ++
urule-console/pom.xml | 7 -
urule-core/pom.xml | 14 +-
urule-parent/pom.xml | 133 ++++++++-
urule-parent/target/checkstyle-cachefile | 4 +
urule-parent/target/checkstyle-checker.xml | 321 +++++++++++++++++++++
urule-parent/target/checkstyle-result.xml | 3 +
urule-springboot/pom.xml | 25 +-
8 files changed, 498 insertions(+), 35 deletions(-)
create mode 100644 google_checks.xml
create mode 100644 urule-parent/target/checkstyle-cachefile
create mode 100644 urule-parent/target/checkstyle-checker.xml
create mode 100644 urule-parent/target/checkstyle-result.xml
diff --git a/google_checks.xml b/google_checks.xml
new file mode 100644
index 00000000..71d3671a
--- /dev/null
+++ b/google_checks.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/urule-console/pom.xml b/urule-console/pom.xml
index 6b51d342..64b858bf 100644
--- a/urule-console/pom.xml
+++ b/urule-console/pom.xml
@@ -6,7 +6,6 @@
2.0.4
urule-console
- 2.1.7-SNAPSHOT
com.bstek.urule
@@ -16,7 +15,6 @@
org.apache.jackrabbit
jackrabbit-core
- 2.13.3
derby
@@ -27,28 +25,23 @@
javax.jcr
jcr
- 2.0
javax.servlet
servlet-api
- 2.5
provided
commons-fileupload
commons-fileupload
- 1.3.2
org.apache.velocity
velocity
- 1.7
org.apache.poi
poi-ooxml
- 3.16
diff --git a/urule-core/pom.xml b/urule-core/pom.xml
index b637fa4a..bf327ace 100644
--- a/urule-core/pom.xml
+++ b/urule-core/pom.xml
@@ -1,7 +1,6 @@
4.0.0
urule-core
- 2.1.7-SNAPSHOT
UTF-8
@@ -9,38 +8,31 @@
org.antlr
antlr4-runtime
- 4.5
org.slf4j
slf4j-jdk14
- 1.7.2
javax.servlet
servlet-api
- 2.5
provided
org.springframework
spring-web
- 4.3.11.RELEASE
commons-lang
commons-lang
- 2.6
dom4j
dom4j
- 1.6.1
commons-beanutils
commons-beanutils
- 1.8.3
commons-logging
@@ -49,14 +41,12 @@
- org.codehaus.jackson
- jackson-mapper-asl
- 1.9.11
+ com.fasterxml.jackson.core
+ jackson-databind
commons-io
commons-io
- 2.4
diff --git a/urule-parent/pom.xml b/urule-parent/pom.xml
index 70d4bdc4..a2c145fc 100644
--- a/urule-parent/pom.xml
+++ b/urule-parent/pom.xml
@@ -5,6 +5,8 @@
2.0.4
UTF-8
+ 1.8
+ 1.8
@@ -30,6 +32,80 @@
http://www.bstek.com
pom
+
+
+
+ org.antlr
+ antlr4-runtime
+ 4.9.3
+
+
+ org.slf4j
+ slf4j-jdk14
+ 1.7.36
+
+
+ javax.servlet
+ servlet-api
+ 2.5
+
+
+ org.springframework
+ spring-web
+ 5.3.23
+
+
+ commons-lang
+ commons-lang
+ 2.6
+
+
+ dom4j
+ dom4j
+ 1.6.1
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.9.4
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.14.0
+
+
+ commons-io
+ commons-io
+ 2.11.0
+
+
+ org.apache.jackrabbit
+ jackrabbit-core
+ 2.21.12
+
+
+ javax.jcr
+ jcr
+ 2.0
+
+
+ commons-fileupload
+ commons-fileupload
+ 1.4
+
+
+ org.apache.velocity
+ velocity
+ 1.7
+
+
+ org.apache.poi
+ poi-ooxml
+ 5.2.3
+
+
+
@@ -89,12 +165,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 2.4
-
- 1.7
- 1.7
- utf-8
-
+ 3.8.1
org.sonatype.plugins
@@ -137,6 +208,9 @@
org.apache.maven.plugins
maven-gpg-plugin
1.5
+
+ true
+
sign-artifacts
@@ -146,7 +220,52 @@
-
+
+
+ com.coveo
+ fmt-maven-plugin
+ 2.9
+
+
+
+ format
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ google_checks.xml
+ UTF-8
+ true
+ true
+ false
+
+
+
+ validate
+ validate
+
+ check
+
+
+
+
+
+ com.github.spotbugs
+ spotbugs-maven-plugin
+ 4.7.3.0
+
+
+
+ check
+
+
+
+
diff --git a/urule-parent/target/checkstyle-cachefile b/urule-parent/target/checkstyle-cachefile
new file mode 100644
index 00000000..769e52a2
--- /dev/null
+++ b/urule-parent/target/checkstyle-cachefile
@@ -0,0 +1,4 @@
+#Thu Jul 17 09:53:17 UTC 2025
+configuration*?=3DE5EB3307AAF106FD921FBCBA852A6C866BF736
+module-resource*?\:checkstyle-suppressions.xml=DFB2D651CE6AF6096D483A717855DA74D9DB5069
+module-resource*?\:checkstyle-xpath-suppressions.xml=760BB7F9B3DF3DD0D141C7989894BBFE08FDD680
diff --git a/urule-parent/target/checkstyle-checker.xml b/urule-parent/target/checkstyle-checker.xml
new file mode 100644
index 00000000..3920eb31
--- /dev/null
+++ b/urule-parent/target/checkstyle-checker.xml
@@ -0,0 +1,321 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/urule-parent/target/checkstyle-result.xml b/urule-parent/target/checkstyle-result.xml
new file mode 100644
index 00000000..54aaa197
--- /dev/null
+++ b/urule-parent/target/checkstyle-result.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/urule-springboot/pom.xml b/urule-springboot/pom.xml
index d93edf3e..0e1b8be1 100644
--- a/urule-springboot/pom.xml
+++ b/urule-springboot/pom.xml
@@ -1,12 +1,9 @@
4.0.0
- com.bstek.urule
urule-springboot
- 0.0.1-SNAPSHOT
- 1.7
- 8.5.5
+ 1.8
UTF-8
@@ -33,10 +30,21 @@
http://www.bstek.com
- org.springframework.boot
- spring-boot-starter-parent
- 1.5.8.RELEASE
+ com.bstek.urule
+ urule-parent
+ 2.0.4
+
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.7.5
+ pom
+ import
+
+
+
org.springframework.boot
@@ -45,7 +53,7 @@
com.bstek.urule
urule-console
- 2.1.1-SNAPSHOT
+ ${project.version}
org.slf4j
@@ -56,7 +64,6 @@
javax.servlet
servlet-api
- 2.5
provided