Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

How to enable all optional dependencies for tests

$
0
0

You could probably do it via

subprojects {
   apply plugin: 'java-library'

   configurations {
      optional
   }
   configurations.implementation.incoming.dependencies.all {
      if (it instanceof ProjectDependency) {
          // wire the optional configurations together 
      } 
   } 
} 

Viewing all articles
Browse latest Browse all 19854

Trending Articles