-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle task does not work with version 7.0 #22
Comments
To be more specific about the error message given:
|
I tested this with a local build - the current code on GitHub is compatible with Gradle 7.0. However a new release of the jarjar Gradle plugin is required as the latest version is 1.0.1. See also the request in #16 |
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:
New Gradle API:
To use the plugin: For instance, to import Apache Tika excluding
@ungesehn @matthewhague @cah-anuj-shrivastava @thomasstache @AlexKrupa @cmathew @jgremmen |
@andob Unfortunately, when I add
UPD. I've resolved it like this: buildscript {
repositories {
maven {
url = uri("https://jitpack.io")
}
}
dependencies {
classpath("com.github.shevek.jarjar:jarjar-gradle:master")
}
}
apply(plugin = "org.anarres.jarjar") |
Using master branch may cause problem in project if there a new release with conflict to your current project usage. I tried your proposal. it did get rid of the warnings. However I found the following problems: Execution failed for task ':aTalk:collectPlaystoreReleaseDependencies'.
|
I'm using the current implementation(files(JarjarController(project).repackage("<your name>", closureOf<JarjarTask> {
from("...")
classDelete("...")
}))) |
Thanks for your input. I am trying to change the following to your proposal, but gradle flagged as unresolved symbol. Is a new plugin or meant something else? Appreciate your advice, possibly provide an actual output for the example below. Sorry, I am not familiar with kotlin implementation, not sure if build.gradle file allows a mixture of both existing and kotlin definitions.
|
After going through the information on: It seems that your proposed scripts has the same task implementation as the one in aTalk gradle script. So the problem of merging multiple output jars into the specified destinationName is not working using jitpack.io
|
I am not sure now what my previous comment is correct.
|
aTalk uses jarjar master source release for android API-34 release. JarJar is fully compatible with gradle-7.x For legacy gradle API:
|
Gradle version 7.0 now reports the following error:
- Type 'JarjarTask' property 'destinationDir' is missing an input or output annotation.
The text was updated successfully, but these errors were encountered: