Gradle: use wildcard in jar name in classpath -


gradle: use wildcard in jar name in classpath

buildscript {     repositories {         flatdir {             dirs "foo/lib"         }     }      dependencies {         classpath name: 'bar-*-util'     } } 

the bar version can version such bar-1.0-util.jar, bar-2.0-util.jar

you can try add jars have in lib directory follows:

dependencies {     classpath filetree(dir: 'foo/lib', include: ['*.jar']) } 

or specific jars as:

classpath filetree(dir: 'foo/lib', include: ['bar-*-util.jar']) 

and don't need specify flatdir repository in case.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -