Gradle plugin that adds dependencies and example project in the same project

I want to create in the same project so that my IDE allows me to code them all, the following subprojects:

  • java package
  • a gradle that adds a dependency on a java project (artifact)
  • a gradle sample that this plugin uses

The problem is that the sample to be evaluated will have to use a plugin, then the plugin will add the dependency.

BUT in order to compile the java package I need all the subprojects to evaluate ... including the sample. And the sample cannot be evaluated as it needs a java dependency ...

How can i do this?

I still didn't find all three subprojects in one project. I tried setting up on demand, but the sample buildScript is still evaluating. My only job is to remove the sample subproject from the project.

+3
java plugins dependencies gradle


source to share


No one has answered this question yet

Check out similar questions:

425
How do I force gradle to re-download dependencies?
401
Automatically accept all SDK licenses
369
How to manually enable external aar package with new Android Build Gradle system
88
How to create Java gradle project
thirty
Adding Local Plugin to Gradle Project
3
Gradle compile dependencies not included in Jar
3
Add dependencies via transitive dependencies of another configuration in Gradle
2
Add Android Gradle plugin as runtime dependency
0
Plugin itself cannot add buildscript dependencies and then apply dokka-android plugin
0
Gradle plugin project fails build



All Articles
Loading...
X
Show
Funny
Dev
Pics