Skip to content

Fix Gradle 8.12 Deprecation Warnings and Checkstyle Violations#2274

Open
diytechy wants to merge 1 commit into
EngineHub:version/7.0.xfrom
diytechy:BuildFix
Open

Fix Gradle 8.12 Deprecation Warnings and Checkstyle Violations#2274
diytechy wants to merge 1 commit into
EngineHub:version/7.0.xfrom
diytechy:BuildFix

Conversation

@diytechy
Copy link
Copy Markdown

Summary
This PR resolves build errors and deprecation warnings that occur when building with Gradle 8.12, ensuring compatibility with future Gradle 9.0 release.

Changes Made

  1. Fixed Checkstyle Violations in PaperInterop.java
    Replaced JetBrains annotations with javax annotations: Changed @NotNull and @nullable from org.jetbrains.annotations to @nonnull and @nullable from javax.annotation to comply with import control rules

Added private constructor: Added a private constructor to the PaperInterop utility class to satisfy the HideUtilityClassConstructor checkstyle rule

  1. Fixed Gradle Deprecation: FileTreeElement.getMode()
    Updated file permissions handling: Modified buildlogic.libs.gradle.kts to use the new permissions() API instead of the deprecated getMode() method when processing source files during relocation

Sets explicit Unix permissions (rw-r--r--) for relocated source files

  1. Fixed Gradle Deprecation: ConfigureUtil
    Modernized Artifactory configuration: Replaced deprecated configure with the artifactory extension block in buildlogic.artifactory-root.gradle.kts

Removed unused ArtifactoryPluginConvention import

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