Skip to content

Commit

Permalink
resolve only rutime and compile time gem dependencies when installing…
Browse files Browse the repository at this point in the history
… gems
  • Loading branch information
mkristian committed Jun 21, 2011
1 parent dd37978 commit d74a72b
Showing 1 changed file with 9 additions and 7 deletions.
Expand Up @@ -100,15 +100,17 @@ public void installGems(final MavenProject pom, final Collection<Artifact> artif
if (pom != null) {
boolean hasAlreadyOpenSSL = false;
for (final Artifact artifact : pom.getArtifacts()) {
if (!artifact.getFile().exists()) {
this.manager.resolve(artifact,
localRepository,
remoteRepos);
if ("compile".equals(artifact.getScope()) || "runtime".equals(artifact.getScope())) {
if (!artifact.getFile().exists()) {
this.manager.resolve(artifact,
localRepository,
remoteRepos);

}
script = maybeAddArtifact(script, artifact);
hasAlreadyOpenSSL = hasAlreadyOpenSSL
|| artifact.getArtifactId().equals(JRUBY_OPENSSL);
}
script = maybeAddArtifact(script, artifact);
hasAlreadyOpenSSL = hasAlreadyOpenSSL
|| artifact.getArtifactId().equals(JRUBY_OPENSSL);
}
if (artifacts != null) {
for (final Artifact artifact : artifacts) {
Expand Down

0 comments on commit d74a72b

Please sign in to comment.