As of gradle 2.10 (?) we are getting warning:
The plus(Iterable) method and using the ‘+’ operator in conjunction with an Iterable object have been deprecated and are scheduled to be removed in 3.0. Please use the plus(FileCollection) method or the ‘+’ operator with a FileCollection object instead.
classpath {
//you can tweak the classpath of the Eclipse project by adding extra configurations:
plusConfigurations += [ configurations.provided ]
//you can also remove configurations from the classpath:
minusConfigurations += [ configurations.someBoringConfig ]
.... }
Please don’t call asPath there, this will resolve dependencies at configuration time.
It should just be
run.classpath += configurations.dbDriver
There’s a difference between run.classpath and eclipse.classpath.plusConfigurations: The former is a single FileCollection, the latter is a List<Configuration>.