gradle-extra-configurations-plugin | Gradle plugin introducing a provided dependency | Plugin library
kandi X-RAY | gradle-extra-configurations-plugin Summary
kandi X-RAY | gradle-extra-configurations-plugin Summary
[Apache 2.0] This plugin allows dependencies to be declared with a configuration or attribute not available in Gradle core.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-extra-configurations-plugin
gradle-extra-configurations-plugin Key Features
gradle-extra-configurations-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on gradle-extra-configurations-plugin
QUESTION
I am migrating a Maven library project to Gradle. The original project also has optional dependencies. I use the java-library plugin but moving the formerly optional dependencies to implementation results in runtime dependencies instead of compile. So I tried the gradle feature variants which results in the right dependencies in the pom.xml
. But doing so results is failing test compile as the dependencies of the feature variant are missing on the test compile classpath!
Here is my current setup in build.gradle
:
ANSWER
Answered 2019-Sep-18 at 12:49This looks like a bug when the feature source set uses the main source set. Can you report on https://github.com/gradle/gradle/issues?
In the meantime, this should fix it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-extra-configurations-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page