Skip to content

setFileMode slated for removal in Gradle 9.0 #160

@bell345

Description

@bell345

When building with a newer version of Gradle (8.9), there is a deprecation warning caused by the use of setFileMode in RustAndroidPlugin.kt, see:

fileMode = 493 // 0755 in decimal; Kotlin doesn't have octal literals (!).

This API is currently deprecated and is slated for removal in Gradle 9.0, due for release in Q2 2025. Therefore, this usage should be replaced with an implementation with the newer filePermissions(Action) API.

I am planning to contribute a quick PR in a few hours to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions