Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 20, 2025

Bumps the gradle group with 1 update in the /MekHQ directory: org.apache.logging.log4j:log4j-core.

Updates org.apache.logging.log4j:log4j-core from 2.25.1 to 2.25.3

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps the gradle group with 1 update in the /MekHQ directory: org.apache.logging.log4j:log4j-core.


Updates `org.apache.logging.log4j:log4j-core` from 2.25.1 to 2.25.3

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-version: 2.25.3
  dependency-type: direct:production
  dependency-group: gradle
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added Dependencies Pull requests that update a dependency file java Pull requests that update java code labels Dec 20, 2025
@dependabot dependabot bot requested a review from a team as a code owner December 20, 2025 00:06
@dependabot dependabot bot added Dependencies Pull requests that update a dependency file java Pull requests that update java code labels Dec 20, 2025
@HammerGS
Copy link
Member

HammerGS commented Dec 20, 2025

Tests failing because:

The job failed because it could not find the symbol Nonnull and the import javax.annotation.Nonnull does not exist. This means the javax.annotation dependency is missing.

Solution:

You need to add a dependency that provides the @nonnull annotation. The javax.annotation package is not part of the JDK in modern Java versions.
The recommended replacement is to use the annotation from the package jakarta.annotation or, if you prefer, from another library like org.jetbrains.annotations.
Code Suggestion: Add the following dependency to your build.gradle file to restore the javax.annotation.Nonnull:

For Gradle (build.gradle):

Groovy

dependencies {
    // Other dependencies
    implementation 'javax.annotation:javax.annotation-api:1.3.2'
}

For Maven (pom.xml):

XML

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>javax.annotation-api</artifactId>
    <version>1.3.2</version>
</dependency>

Alternatively, you can switch your imports to use jakarta.annotation.Nonnull and add that dependency instead:

Groovy
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
After adding the dependency, rerun your build.

You can find the problematic imports, for example, in:

  • MekHQ/src/mekhq/campaign/finances/Money.java
  • MekHQ/src/mekhq/campaign/mission/CommonObjectiveFactory.java
  • MekHQ/src/mekhq/campaign/universe/RegionPerimeter.java
  • MekHQ/src/mekhq/gui/model/PartsStoreModel.java
  • MekHQ/src/mekhq/gui/displayWrappers/RankDisplay.java
  • MekHQ/src/mekhq/gui/dialog/EditInjuryEntryDialog.java

Add the dependency and it will resolve the cannot find symbol: class Nonnull errors across these files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants