{"id":13611153,"url":"https://github.com/plnice/can-i-drop-jetifier","last_synced_at":"2025-04-13T01:34:54.689Z","repository":{"id":34174101,"uuid":"168959391","full_name":"plnice/can-i-drop-jetifier","owner":"plnice","description":"Gradle plugin that checks if there are dependencies using support library instead of AndroidX.","archived":true,"fork":false,"pushed_at":"2022-02-05T08:05:53.000Z","size":210,"stargazers_count":558,"open_issues_count":10,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-01T19:56:48.003Z","etag":null,"topics":["android","gradle-plugin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plnice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-03T15:22:28.000Z","updated_at":"2024-07-27T10:09:08.000Z","dependencies_parsed_at":"2022-08-08T00:01:49.829Z","dependency_job_id":null,"html_url":"https://github.com/plnice/can-i-drop-jetifier","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plnice%2Fcan-i-drop-jetifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plnice%2Fcan-i-drop-jetifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plnice%2Fcan-i-drop-jetifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plnice%2Fcan-i-drop-jetifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plnice","download_url":"https://codeload.github.com/plnice/can-i-drop-jetifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223558583,"owners_count":17165149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","gradle-plugin"],"created_at":"2024-08-01T19:01:52.284Z","updated_at":"2024-11-07T17:31:31.870Z","avatar_url":"https://github.com/plnice.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"| :exclamation:  Deprecated |\n|---------------------------|\n| This plugin is deprecated and no new versions will be provided. For checking if Jetifier can be disabled, you can switch to `checkJetifier` task provided by the Android Gradle Plugin 7.1+. |\n\n# Can I drop Jetifier?\n\nChecks whether there are any dependencies using support library instead of AndroidX artifacts.\n\nIf you migrated to AndroidX, you probably have the Jetifier tool enabled that converts dependencies that still depend on old artifacts to operate on AndroidX classes. Since more and more libraries are migrated to AndroidX, at some point there will be no need to have this tool enabled. This plugin can be used to identify which of the libraries you are using need to be migrated to AndroidX or bumped if the new version is already there.\n\n## Setup\n\nBuild script snippet for plugins DSL for Gradle 2.1 and later:\n\n``` groovy\nplugins {\n  id \"com.github.plnice.canidropjetifier\" version \"0.5\"\n}\n```\n\nBuild script snippet for use in older Gradle versions or where dynamic configuration is required:\n\n``` groovy\nbuildscript {\n  repositories {\n    gradlePluginPortal()\n  }\n  dependencies {\n    classpath \"com.github.plnice:canidropjetifier:0.5\"\n  }\n}\n\napply plugin: \"com.github.plnice.canidropjetifier\"\n```\n\nFor multi-module projects, you can apply the plugin in the top-level `build.gradle` file. It will analyze all the modules found in the project.\n\n## Usage\n\nThe Jetifier tool must be temporarily disabled to make this plugin work correctly. It can be done when calling the plugin's task:\n\n``` bash\n./gradlew -Pandroid.enableJetifier=false canIDropJetifier\n```\n\nExample output:\n\n``` bash\n========================================\nProject sample\n========================================\n\nCannot drop Jetifier due to following module dependencies:\n\n* sample-dependency (module)\n  \\-- com.android.support:cardview-v7:28.0.0\n  \\-- com.squareup.leakcanary:leakcanary-android:1.6.3\n   \\-- com.android.support:support-core-utils:26.0.0\n  \\-- com.squareup.leakcanary:leakcanary-android:1.6.3\n   \\-- com.squareup.leakcanary:leakcanary-analyzer:1.6.3\n    \\-- com.android.support:support-annotations:28.0.0\n\nCannot drop Jetifier due to following external dependencies:\n\n* com.android.support:cardview-v7:28.0.0\n\n* com.squareup.leakcanary:leakcanary-android:1.6.3\n  \\-- com.squareup.leakcanary:leakcanary-analyzer:1.6.3\n   \\-- com.android.support:support-annotations:28.0.0\n  \\-- com.android.support:support-core-utils:26.0.0\n```\n\n## Configuration\n\n``` groovy\ncanIDropJetifier {\n  verbose = true // Default: false, set to true to print the dependencies tree down to the old artifact\n  includeModules = false // Default: true, print out not only external (library) dependencies, but also module dependencies that use old artifacts\n  analyzeOnlyAndroidModules = false // Default: true, analyze only modules that use com.android.application or com.android.library plugins\n  configurationRegex = \".*RuntimeClasspath\" // Performance optimization: checks only configurations that match provided regex\n  parallelMode = true // Default: false, experimental: run analysis of modules in parallel\n  parallelModePoolSize = 4 // Default: max available processors - 1, experimental: pool size for analysis in parallel\n}\n```\n\n## License\n\n```\nCopyright 2019 Miłosz Lewandowski\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplnice%2Fcan-i-drop-jetifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplnice%2Fcan-i-drop-jetifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplnice%2Fcan-i-drop-jetifier/lists"}