10 Replies Latest reply on Oct 10, 2013 6:48 AM by Karel Piwko

    Arquillian _ ShrinkWrap _ WebArchive _ Add dependencies Jar using Gradle

    Vikas B Newbie

      How can I add dependencies jars to my test web artifact using GRADLE ?

       

      WebArchive archive = ShrinkWrap

                      .create(WebArchive.class, "Test.war")

                      .addPackages(true, "com.xyz")

                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")

                      .addAsResource(new File("src/main/resources/hibernate.cfg.xml"))

                      .addAsLibraries( dependecies jars like "org.hibernate:hibernate-core:3.5.1-Final" );