Skip to content
Discussion options

You must be logged in to vote

In the projects build.gradle file (not to be confused with the module/app's build.gradle) the following will enable deprecation prints:

allprojects {
    subprojects {
        afterEvaluate {
            tasks.withType(JavaCompile).tap {
                configureEach {
                    options.compilerArgs += "-Xlint:deprecation"
                }
            }
        }
    }
}

Not sure on the best way to inject this into the cordova project, but I feel like this should be an option that can be enabled, maybe via a preference.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GitToTheHub
Comment options

GitToTheHub Jul 8, 2025
Collaborator Author

@breautek
Comment options

breautek Jul 9, 2025
Collaborator

@GitToTheHub
Comment options

GitToTheHub Jul 9, 2025
Collaborator Author

Answer selected by GitToTheHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants