Skip to content

Develop 3.7.2#20

Merged
eggy03 merged 9 commits into
mainfrom
develop-3.7.2
May 12, 2026
Merged

Develop 3.7.2#20
eggy03 merged 9 commits into
mainfrom
develop-3.7.2

Conversation

@eggy03
Copy link
Copy Markdown
Owner

@eggy03 eggy03 commented May 12, 2026

This PR contains internal refactors for easier maintainability

[2b3e928] build: switch to maven-assembly-plugin
[a85e2b7] chore: bump version to 3.7.2
[330555a] docs: remove native image description
[4815c89] refactor(server-stat-command): make helpers private
[8b71496] style(annotations): replace @NotNull with @NonNull annotations
[589391f] refactor(clients): inject api clients into listeners
[4dcf4c3] refactor(listeners): reorganize command listener packages
[7a5c7bf] refactor: unpack commons package
[8906340] refactor(utils): remove StackWalkerUtils from logging and deprecate

eggy03 added 9 commits May 12, 2026 10:27
- Remove `StackWalkerUtils.getCallHierarchy()` from `log.debug` calls in `BooleanUtils.java`, `NumberParseUtils.java`, and `DurationUtils.java`
- Deprecate `StackWalkerUtils.java` as its functionality is no longer used in logging
- Remove `@Slf4j` annotation from `BooleanUtils.java` where it's no longer needed
- Add exception objects to `log.debug` calls within `catch` blocks for improved error context
- Add `@Nullable` and `@NonNull` annotations to `EnvConfig.get()` for better nullability contract

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- move classes from `commons.utils` to `utils`
- move classes from `commons.constant` to `constant`

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Move command-related listener classes to the `command` package
- Rename `DebugListener` to `DebugCommandListener`

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Inject `AuditLogRegistrationClient`, `MessageLogRegistrationClient`, and `MessageLogContentClient` into listener constructors
- Initialize API clients once in `Start.java` and pass them via `BootstrapService`
- Remove direct `EnvConfig.get("API_URL")` calls from listener classes
- Improve testability and reduce coupling by using dependency injection
- Refactor helper methods in `DebugCommandListener` to be non-static

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Replace `@NotNull` with `@NonNull` across various listener and utility classes
- Add `@Nullable` annotation to `channelId` and `ownerId` parameters in `GuildUtils.java`

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Make server stat command helper methods private
- Adjust `getDataRequestingMember` signature to accept `Member` instead of the entire event

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- The bot image was never a native-build. Only the API is native-built.

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Replace `spring-boot-maven-plugin` with `maven-assembly-plugin` for packaging.
- Configure `maven-assembly-plugin` to create a `jar-with-dependencies`.
- Update `Dockerfile` to copy the new `papertrailbot-jar-with-dependencies.jar`.

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
@eggy03 eggy03 merged commit efc959d into main May 12, 2026
6 checks passed
@eggy03 eggy03 deleted the develop-3.7.2 branch May 12, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant