Java Reference
In-Depth Information
}
}
There exists a similar feature for the Gradle project included since ShrinkWrap Resolver
2.2.0-alpha-1. However, it uses the Gradle Tooling API internally:
ShrinkWrap.create(EmbeddedGradleImporter.class)
.forProjectDirectory("/path/to/dir")
.importBuildOutput()
.as(WebArchive.class);
At some point, you might be surprised that this last example did not work. The reason
might be that arquillian-bom does not include this ShrinkWrap Resolver version.
However, it is possible to override the BOM imported versions with another BOM. It's
pretty easy; just insert the more important BOM first:
<dependencyManagement>
<!-- shrinkwrap resolvers import must be before
arquillian bom! -->
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-bom</artifactId>
<version>${version.shrinkwrap-resolver}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap</groupId>
<artifactId>shrinkwrap-bom</artifactId>
<version>${version.shrinkwrap}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencyManagement>
More info about ShinkWrap Resolver can be found on its GitHub repository at ht-
tps://github.com/shrinkwrap/resolver .
Search WWH ::




Custom Search