plnice / can-i-drop-jetifier

Gradle plugin that checks if there are dependencies using support library instead of AndroidX.
Apache License 2.0
558 stars 14 forks source link

Compatibility with Gradle 7.0 rc2 #20

Open Jeff11 opened 3 years ago

Jeff11 commented 3 years ago

When running ./gradlew -Pandroid.enableJetifier=false canIDropJetifier I get the following output:

> Task :myapp:canIDropJetifier FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':myapp:canIDropJetifier' (type 'CanIDropJetifierTask').
  - Type 'CanIDropJetifierTask' property 'analyzeOnlyAndroidModules' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CanIDropJetifierTask' property 'configurationRegex' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CanIDropJetifierTask' property 'includeModules' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CanIDropJetifierTask' property 'parallelMode' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CanIDropJetifierTask' property 'parallelModePoolSize' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
stkent commented 3 years ago

Same with 7.0 release.

Saumil-android commented 3 years ago

Same with 7.0 release.

peterfortuin commented 3 years ago

Same with Gradle 7.0.2.

tir38 commented 2 years ago

This project hasn't been updated in two years. I jumped to https://github.com/dipien/bye-bye-jetifier on side project, worked no problem.

nordfalk commented 2 years ago

I worked around this by setting gradle.properties back to to distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

and in my build.gradle I had to go back to classpath 'com.android.tools.build:gradle:4.2.0'

and then it worked - and I can drop jetifier :-)