tehlers / gradle-download-dependencies-plugin Goto Github PK
View Code? Open in Web Editor NEWA Gradle plugin that downloads the dependencies of a Java project into a local repository that follows the maven structure
License: Other
A Gradle plugin that downloads the dependencies of a Java project into a local repository that follows the maven structure
License: Other
I find this gradle plugin really useful. One feature that would be nice to have is the ability to configure the plugin with the types of artifacts that should be downloaded. For example, I don't always need to download the javadoc artifacts. It would be nice if I could turn that off.
Thanks!
In order to reproduce this, you'd need to attempt to download a dependency that lists optional dependencies in its POM file. The behavior I see is that everything gets downloaded except the optional dependencies. I'd expect that the optional dependencies would be able to be downloaded.
This also makes me wonder if a transitive, provided dependency would also be ignored (a dependency in the POM with the 'provided' scope). I'd expect that this plugin should be able to download all of the dependencies.
My use case for this plugin is for transferring my team's external dependencies from jcenter to my company's Artifactory server. The optional dependencies being ignored causes problems for this use case because the optional dependencies don't get transferred to our Artifactory server. This in turn causes Gradle to throw errors, because Gradle will attempt to lookup optional dependencies even if they're not in use.
This plugin was working just fine for Gradle 4.10.2, but I'm now getting some errors after upgrading to Gradle 5.0.
Here is the error I'm seeing:
Execution failed for task ':downloadDependencies'.
> Receiver class net.idlestate.gradle.downloaddependencies.DownloadDependenciesTask$ParentComponentIdentifier does not define or inherit an implementation of the resolved method abstract getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier; of interface org.gradle.api.artifacts.component.ModuleComponentIdentifier.
It looks like Gradle may have some interface changes that caused this, but I haven't looked into it. Since Java 11 has released (which is kind of huge), it'd probably be a good idea to update your library so that it integrates with the latest tools.
I'm using is android and use kotlin apt apply plugin: 'kotlin-kapt'
, when use Glide,
dependencies {
kapt 'com.github.bumptech.glide:compiler:4.8.0'
}
it will show:
Library file compiler-4.8.0.jar of dependency com.github.bumptech.glide:compiler:4.8.0 not found even when considering potential classifiers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.