Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6 #1177

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.spotbugs.snom:spotbugs-gradle-plugin 5.2.5 -> 6.0.1 age adoption passing confidence

Release Notes

spotbugs/spotbugs-gradle-plugin (com.github.spotbugs.snom:spotbugs-gradle-plugin)

v6.0.1

Compare Source

Bug Fixes
  • deps: update dependency com.android.tools.build:gradle to v8.2.0 (8ffba8e)

v6.0.0

Compare Source

Bug Fixes
  • enable java Tool Chain support by default (c94b886), closes #​907
  • merge changes from the master branch (12ba901)
  • publish Java 11 class files (1c1955e)
  • remove deprecated methods SpotBugsTask.getEnabledReports() and SpotBugsTask.getFirstEnabledReport (2ab3c45)
  • remove the deplicated SpotBugsRunnerForWorker API (aa75fbc)
  • replace the usage of duplicated project.buildDir API (5abbf2d)
Features
BREAKING CHANGES
  • The convention API provides replacement from 7.1 and later, so we use 7.1
    as minimal required version.

Signed-off-by: Kengo TODA skypencil@gmail.com

  • This plugin has been rewritten in Kotlin, and it may break the binary compatibility of public API. Intentional changes are listed as follows:
Changes for Groovy buildscripts

About effort and reportLevel properties of SpotBugsTask and SpotBugsExtension, Groovy buildscripts should use use valueOf(String) method explicitly. This limitation is caused by a known issue of the Groovy language:

// before (v5)
spotbugs {
    effort = 'default'
    reportLevel = 'default'
}

// after (v6)
spotbugs {
    effort = Effort.valueOf('DEFAULT')
    reportLevel = Confidence.valueOf('DEFAULT')
}
Changes for Kotlin buildscripts

It is recommended to use Gradle 8.2 or later, then you can enjoy the simple property assignment feature by default:

// legacy (Gradle 8.1 and older)
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort

spotbugs {
    effort.set(Effort.DEFAULT)
    reportLevel.set(Confidence.DEFAULT)
}

// new (Gradle 8.2 and later)
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort

spotbugs {
    effort = Effort.DEFAULT
    reportLevel = Confidence.DEFAULT
}

It is also possible to use string values, however, it is not recommended due to lack of type-safety:

// new (Gradle 8.2 and later)
import com.github.spotbugs.snom.assign

spotbugs {
    effort = "DEFAULT"
    reportLevel = "DEFAULT"
}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) December 2, 2023 12:45
@renovate renovate bot merged commit 863ca67 into master Dec 2, 2023
7 checks passed
@renovate renovate bot deleted the renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x branch December 2, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants