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
Post a Comment