apply plugin after defining dependency