this line is likely the cause of the double plugin definition error seen - you cannot add dependencies on libraries with plugins