Skip to content

Commit 39c82ac

Browse files
authored
fix(java): 🐛 fixed issue with the recent logging changes (#1042)
1 parent d787a67 commit 39c82ac

File tree

6 files changed

+1062
-862
lines changed

6 files changed

+1062
-862
lines changed

core-java/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
5555
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
5656
<codestyle.version>1.1.0</codestyle.version>
57-
<checkstyle.version>10.25.0</checkstyle.version>
57+
<checkstyle.version>10.25.1</checkstyle.version>
5858
<aspectj.version>1.9.24</aspectj.version>
5959
<poi.version>5.4.1</poi.version>
6060
<suite-name>testng-api</suite-name>
@@ -83,7 +83,7 @@
8383
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
8484
<allure-testng.version>2.29.1</allure-testng.version>
8585
<maven-failsafe.version>3.5.3</maven-failsafe.version>
86-
<central.sonatype>0.7.0</central.sonatype>
86+
<central.sonatype>0.8.0</central.sonatype>
8787
</properties>
8888

8989
<organization>

core-java/src/main/java/io/github/boykaframework/manager/LoggingBuilder.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package io.github.boykaframework.manager;
1818

19-
import static io.github.boykaframework.manager.ParallelSession.getSession;
19+
import static io.github.boykaframework.utils.SettingUtils.loadSetting;
2020
import static java.lang.System.getProperty;
2121
import static java.text.MessageFormat.format;
2222
import static java.util.Objects.isNull;
@@ -70,8 +70,7 @@ private enum LoggerType {
7070

7171
LoggingBuilder () {
7272
super ();
73-
this.setting = getSession ().getSetting ()
74-
.getLogging ();
73+
this.setting = loadSetting ().getLogging ();
7574
}
7675

7776
Configuration build (final String name, final ConfigurationBuilder<BuiltConfiguration> build) {
@@ -82,7 +81,7 @@ Configuration build (final String name, final ConfigurationBuilder<BuiltConfigur
8281
build.setMonitorInterval ("30");
8382
addAppender (build);
8483
addRootLogger (build);
85-
result = build.build ();
84+
result = build.build (false);
8685
}
8786
return result;
8887
}

core-java/src/main/java/io/github/boykaframework/utils/ErrorHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public final class ErrorHandler {
4444
*/
4545
public static void handleAndThrow (final Message message, final Throwable cause, final Object... args) {
4646
var throwable = cause;
47-
final var stack = new ArrayList<> ();
47+
final var stack = new ArrayList<String> ();
4848
stack.add (format ("Error occurred: ({0})", throwable.getClass ()
4949
.getName ()));
5050
final var stackTrace = "\tat {0}: {1} Line Number: {2}";

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,39 @@
3232
"devDependencies": {
3333
"@commitlint/cli": "^19.8.1",
3434
"@commitlint/config-conventional": "^19.8.0",
35-
"@eslint/compat": "^1.3.0",
36-
"@eslint/js": "^9.28.0",
35+
"@eslint/compat": "^1.3.1",
36+
"@eslint/js": "^9.29.0",
3737
"@lerna/child-process": "^7.4.2",
3838
"@release-it-plugins/lerna-changelog": "^8.0.1",
3939
"@stylistic/eslint-plugin-js": "^4.4.1",
40-
"@stylistic/eslint-plugin-ts": "^4.4.0",
41-
"@types/node": "^22.15.23",
42-
"@typescript-eslint/eslint-plugin": "^8.32.1",
43-
"@typescript-eslint/parser": "^8.32.1",
40+
"@stylistic/eslint-plugin-ts": "^4.4.1",
41+
"@types/node": "^24.0.4",
42+
"@typescript-eslint/eslint-plugin": "^8.35.0",
43+
"@typescript-eslint/parser": "^8.35.0",
4444
"commitlint": "^19.8.0",
45-
"eslint": "^9.27.0",
45+
"eslint": "^9.29.0",
4646
"eslint-config-google": "^0.14.0",
4747
"eslint-config-prettier": "^10.1.2",
48-
"eslint-import-resolver-typescript": "^4.4.1",
49-
"eslint-plugin-import": "^2.31.0",
50-
"eslint-plugin-prettier": "^5.4.0",
48+
"eslint-import-resolver-typescript": "^4.4.4",
49+
"eslint-plugin-import": "^2.32.0",
50+
"eslint-plugin-prettier": "^5.5.1",
5151
"eslint-plugin-react": "^7.37.5",
5252
"globals": "^16.2.0",
5353
"husky": "^9.1.7",
5454
"js-yaml": "^4.1.0",
5555
"lerna": "8.2.2",
5656
"lerna-changelog": "^2.2.0",
5757
"lerna-version": "^6.6.2",
58-
"lint-staged": "^16.0.0",
58+
"lint-staged": "^16.1.2",
5959
"lodash": "^4.17.21",
60-
"nx": "^21.1.2",
61-
"prettier": "^3.5.3",
60+
"nx": "^21.2.1",
61+
"prettier": "^3.6.2",
6262
"react": "^19.1.0",
6363
"react-dom": "^19.1.0",
64-
"release-it": "^17.11.0",
64+
"release-it": "^19.0.3",
6565
"ts-node": "^10.9.2",
6666
"typescript": "^5.8.3",
67-
"typescript-eslint": "^8.32.1"
67+
"typescript-eslint": "^8.35.0"
6868
},
6969
"scripts": {
7070
"preinstall": "npx only-allow pnpm",
@@ -100,5 +100,5 @@
100100
"pnpm format"
101101
]
102102
},
103-
"packageManager": "pnpm@10.11.0"
103+
"packageManager": "pnpm@10.12.4"
104104
}

0 commit comments

Comments
 (0)