Gradle task does not work with version 7.0
See original GitHub issueGradle version 7.0 now reports the following error:
- Type 'JarjarTask' property 'destinationDir' is missing an input or output annotation.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:9
Top Results From Across the Web
Upgrading your build from Gradle 7.x to the latest
In previous Gradle versions, mustRunAfter constraints between regular tasks and finalizer task dependencies would not be honored. For a concrete example, ...
Read more >Troubleshooting builds - Gradle User Manual
If gradle --version works, but all of your builds fail with the same error, it is possible there is a problem with one...
Read more >Gradle 7.0 Release Notes
Validate missing dependencies between tasks ... One of the potential problems now flagged is a task that consumes the output produced by another...
Read more >Solving common problems - Gradle User Manual
Currently Gradle only tracks on a per-task basis that no file encoding has been specified, but it does not track the system encoding...
Read more >What's new in Gradle 7.0
Note, unlike a multi-project build, running gradle build will not run the build task in all of the included builds. You could introduce...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just realized, we can use jitpack.io to import the latest snapshot of the plugin (which is compatible with Gradle 7) into our projects.
To import the plugin:
Legacy Gradle API:
build.gradle
app/build.gradle
New Gradle API:
settings.gradle
app/build.gradle
To use the plugin:
For instance, to import Apache Tika excluding
org.apache.tika.io.MappedBufferCleaner
that usesMethodHandle
API which is missing on Android API level < 26:app/build.gradle
@ungesehn @matthewhague @cah-anuj-shrivastava @thomasstache @AlexKrupa @cmathew @jgremmen
I am not sure now what my previous comment is correct. When I changed the scripts to the following, found that 1 of 3 output *.jar indeed get renamed to “fmj-1.0.1-jitsi.jar”. As I am not familiar with jarjar-gradle, may be someone can give me a hint on how to merged all the output jar files into one, before the file rename process.