From 472a18514f47c529eadacf559db3ad37b3f70c76 Mon Sep 17 00:00:00 2001
From: Pavel Vetokhin
Date: Sat, 16 Mar 2024 18:54:29 +0300
Subject: [PATCH] Setup junit platform logging
---
README.adoc | 1 +
app/pom.xml | 14 +++++++-------
.../src/it/resources/logback-test.xml | 11 -----------
.../src/it/resources/logback-test.xml | 11 -----------
lib/messaging/src/it/resources/logback-test.xml | 11 -----------
lib/pom.xml | 4 +++-
lib/storage/src/it/resources/logback-test.xml | 11 -----------
lib/storage/src/test/resources/logback-test.xml | 11 -----------
pom.xml | 8 +++++++-
test/e2e/src/test/resources/logback-test.xml | 11 -----------
tool/pom.xml | 13 +++++--------
tool/testing/pom.xml | 14 ++++++++++++--
tool/testing/src/main/resources/log4j2.xml | 14 ++++++++++++++
tool/testing/src/main/resources/logback.xml | 12 ++++++++++++
14 files changed, 61 insertions(+), 85 deletions(-)
delete mode 100644 app/sepuling-java/src/it/resources/logback-test.xml
delete mode 100644 app/sepuling-kotlin/src/it/resources/logback-test.xml
delete mode 100644 lib/messaging/src/it/resources/logback-test.xml
delete mode 100644 lib/storage/src/it/resources/logback-test.xml
delete mode 100644 lib/storage/src/test/resources/logback-test.xml
delete mode 100644 test/e2e/src/test/resources/logback-test.xml
create mode 100644 tool/testing/src/main/resources/log4j2.xml
create mode 100644 tool/testing/src/main/resources/logback.xml
diff --git a/README.adoc b/README.adoc
index cff11ed5..77368e57 100644
--- a/README.adoc
+++ b/README.adoc
@@ -8,6 +8,7 @@
. Адаптируем имена (find & replace)
.. Имя проекта (в шаблоне bezmen)
.. Имя приложения (в шаблоне sepuling)
+.. Имя базы данных (в шаблоне enteropia)
.. Имя схемы данных (в шаблоне sepulkarium)
. Настраиваем синхронизацию
.. Создаем Github App на уровне репозитория или организации
diff --git a/app/pom.xml b/app/pom.xml
index 4bd6d59d..08ae9c5c 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -66,7 +66,7 @@
maven-dependency-plugin
- deps-jars
+ copy-deps
pre-integration-test
copy-dependencies
@@ -74,11 +74,11 @@
runtime
${project.groupId}
- ${project.build.directory}/image-context/lib
+ ${project.build.directory}/image/lib
- libs-jars
+ copy-libs
pre-integration-test
copy-dependencies
@@ -86,11 +86,11 @@
runtime
${project.groupId}
- ${project.build.directory}/image-context/bin
+ ${project.build.directory}/image/bin
- app-jar
+ copy-app
pre-integration-test
copy
@@ -101,7 +101,7 @@
${project.groupId}
${project.artifactId}
${project.version}
- ${project.build.directory}/image-context/bin
+ ${project.build.directory}/image/bin
@@ -124,7 +124,7 @@
docker
build
- ${project.build.directory}/image-context
+ ${project.build.directory}/image
--file
${project.basedir}/Dockerfile
--tag
diff --git a/app/sepuling-java/src/it/resources/logback-test.xml b/app/sepuling-java/src/it/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/app/sepuling-java/src/it/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/app/sepuling-kotlin/src/it/resources/logback-test.xml b/app/sepuling-kotlin/src/it/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/app/sepuling-kotlin/src/it/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/lib/messaging/src/it/resources/logback-test.xml b/lib/messaging/src/it/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/lib/messaging/src/it/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/lib/pom.xml b/lib/pom.xml
index 02cca27a..ab64aefc 100644
--- a/lib/pom.xml
+++ b/lib/pom.xml
@@ -96,8 +96,10 @@
org.slf4j
- slf4j-api
+ slf4j-bom
2.0.12
+ import
+ pom
ch.qos.logback
diff --git a/lib/storage/src/it/resources/logback-test.xml b/lib/storage/src/it/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/lib/storage/src/it/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/lib/storage/src/test/resources/logback-test.xml b/lib/storage/src/test/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/lib/storage/src/test/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
index d57c5bf8..39d62d7d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -275,6 +275,9 @@
junit.jupiter.execution.parallel.config.fixed.parallelism=2
+
+ org.apache.logging.log4j.jul.LogManager
+
@@ -302,6 +305,9 @@
junit.jupiter.execution.parallel.enabled=false
+
+ org.apache.logging.log4j.jul.LogManager
+
@@ -367,7 +373,7 @@
maven-deploy-plugin
3.1.1
- true
+ true
diff --git a/test/e2e/src/test/resources/logback-test.xml b/test/e2e/src/test/resources/logback-test.xml
deleted file mode 100644
index 885aa3cb..00000000
--- a/test/e2e/src/test/resources/logback-test.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
-
-
-
-
-
-
-
diff --git a/tool/pom.xml b/tool/pom.xml
index a8d28c63..96e65846 100644
--- a/tool/pom.xml
+++ b/tool/pom.xml
@@ -71,14 +71,11 @@
pom
- org.slf4j
- slf4j-api
- 2.0.12
-
-
- ch.qos.logback
- logback-classic
- 1.5.3
+ org.apache.logging.log4j
+ log4j-bom
+ 2.23.1
+ import
+ pom
com.fasterxml.jackson
diff --git a/tool/testing/pom.xml b/tool/testing/pom.xml
index 6f4abde7..26533041 100644
--- a/tool/testing/pom.xml
+++ b/tool/testing/pom.xml
@@ -48,8 +48,18 @@
- ch.qos.logback
- logback-classic
+ org.apache.logging.log4j
+ log4j-core
+ runtime
+
+
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ runtime
+
+
+ org.apache.logging.log4j
+ log4j-jul
runtime
diff --git a/tool/testing/src/main/resources/log4j2.xml b/tool/testing/src/main/resources/log4j2.xml
new file mode 100644
index 00000000..b6c71543
--- /dev/null
+++ b/tool/testing/src/main/resources/log4j2.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tool/testing/src/main/resources/logback.xml b/tool/testing/src/main/resources/logback.xml
new file mode 100644
index 00000000..354ee23a
--- /dev/null
+++ b/tool/testing/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1} - %msg%n
+
+
+
+
+
+
+