Skip to content

[Surprise Exam] Fix plugin build issue related to Gson#57

Merged
Infinitay merged 2 commits intomasterfrom
exam-data-export
Feb 21, 2026
Merged

[Surprise Exam] Fix plugin build issue related to Gson#57
Infinitay merged 2 commits intomasterfrom
exam-data-export

Conversation

@Infinitay
Copy link
Owner

This PR fixes the plugin hub build issue due to using my own Gson builder instead of utilizing the one provided by RuneLite via injection instead.

refactor(surpriseexam): Now uses RuneLite's Gson to build the question logger

  • Inject RuneLite's Gson
  • Rename and refactored EXAM_QUESTION_GSON_LOGGER -> gsonExamQuestionLogger
    • Gson logger is now built and destroyed in onStartUp and onShutdown respectively
  • Solves the plugin build issue of "uses terminally deprecated APIs" regarding creating "fresh Gson isntances"

- Inject RuneLite's Gson object
- Rename and refactored EXAM_QUESTION_GSON_LOGGER -> gsonExamQuestionLogger
	- Gson logger is now built and destroyed in onStartUp and onShutdown respectively
- Solves the plugin build issue of "uses terminally deprecated APIs" regarding creating "fresh Gson instances"
@Infinitay Infinitay added bug Something isn't working surprise-exam Surprise Exam module labels Feb 21, 2026
- Fix plugin build issue related to creating a fresh Gson instance instead of using RuneLite's
- (surpriseexam) Refactored Gson exam question logger to be built via RuneLite's Gson instance
@Infinitay Infinitay merged commit d8ef1d8 into master Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working surprise-exam Surprise Exam module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant