WebJan 11, 2024 · In short, instead of classifier which is a simple field, you should use archiveClassifier which is a Property and thus enables Gradle to do more. For example … WebMay 11, 2024 · When trying to set the archive classifier from a custom Jar task, I get the following error: Could not get unknown property 'archiveClassifier' for task ':sourcesJar' of type org.gradle.api.tasks.bundling.Jar. ... This works for all version before Gradle 6.0. But setClassifier is deprecated since 5.1. task sourcesJar(type: Jar) { from ...
Some of Gradle
WebDec 11, 2024 · It indicates the dependency is to be replaced with the effective list of dependencies in the specified POM's section. Since they are replaced, dependencies with a scope of import do not actually participate in limiting the transitivity of a dependency. WebMar 29, 2024 · My 2c: classifier-like files in Maven lack their own metadata (e.g. you can't determine third-party dependencies for -tests.jar artifact :( ), so I agree embracing proper project modelling (e.g. standalone artifacts with their own pom or variants via Gradle Metadata) at cost of having to repeat type=.. for non-idiomatic cases makes sense. thd30-565ks
android - Classification of artifacts in Gradle 5? - Stack …
WebJan 1, 2024 · It's common to also add some Javadoc next to the @Deprecated annotation to explain what would be a better alternative that serves the right behavior: public class Worker { /** * Calculate period between versions * @deprecated * This method is no longer acceptable to compute time between versions. WebFeb 2, 2024 · In this specific case we deprecated the method with 3.0 and will remove it with 4.0. You'd only need to introduce reflection here if you wanted your plugin to still support Gradle 2.x versions after the old API has been removed (>= 4.0). View from a Gradle core developer's perspective: I do understand your concern. WebFeb 22, 2024 · Gradle itself has no inherent tie to JCenter or Maven Central, so you can always switch any other repository of your choice. This change will be effective with the next Gradle release – Gradle 7.0. Gradle 7.0 will also deprecate the use of … thd30r