Plugin JAVA-Library creating duplicate build task

I am not able to apply plugin = JAVA-LIBRARY because it is creating build task where my build.gradle already has task build. How to resolve this? I am trying to use this plugin to implement httpcomponents dependency. So if this is not working, is there other ways to implement httpcomponents httpclient in runtime classpath of gradle build