1 Reply Latest reply on Mar 3, 2015 4:18 AM by mani manasa mylavarapu

    How to give gradle addon dependency

    mani manasa mylavarapu Newbie

      Hi,

      I want to add Gradle dependency through code like this

       

      GradleModelBuilder builder = GradleModelBuilder.create();

      model.addTask(GradleTaskBuilder.create() .

      setName("newTask") .

      setDependendsOn(GradleTaskBuilder.create().

      setName("otherTask"))

      .setCode("println 'Hello!'"));



      But i know for that i have to add dependency in my forge addon pom.xml something like below one


      <dependency>

        <groupId>org.jboss.forge.addon</groupId>

        <artifactId>gradle</artifactId>

        <classifier>forge-addon</classifier>

        <version>${version}</version>

      </dependency>

       

      what could be the possible version for this!!

      Or is this way of doing is wrong?

      Please give me suggestion for how to give forge gradle dependency