Permalink
Browse files

switched to sshj and logback

  • Loading branch information...
1 parent 16751dc commit 8fdec4d6e2efaf358158f74ad36d4527556bf86a Adrian Cole committed Jul 25, 2011
@@ -25,20 +25,33 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jclouds.examples</groupId>
<artifactId>compute-basics</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0-SNAPSHOT</version>
<name>compute-basics</name>
<description>jclouds compute example that adds a node to a group, then executes "echo hello" on all nodes</description>
+ <repositories>
+ <repository>
+ <id>sonatype-nexus-snapshots</id>
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
<dependencies>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-allcompute</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0-SNAPSHOT</version>
</dependency>
<!-- note that if you want a smaller distribution
remove the above dependency and place something
@@ -47,13 +60,18 @@
<dependency>
<groupId>org.jclouds.provider</groupId>
<artifactId>gogrid</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0-SNAPSHOT</version>
</dependency>
-->
<dependency>
<groupId>org.jclouds.driver</groupId>
- <artifactId>jclouds-jsch</artifactId>
- <version>1.0.0</version>
+ <artifactId>jclouds-sshj</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>0.9.29</version>
</dependency>
</dependencies>
<build>
@@ -44,9 +44,11 @@
import org.jclouds.compute.domain.NodeMetadata;
import org.jclouds.compute.util.ComputeServiceUtils;
import org.jclouds.domain.Credentials;
+import org.jclouds.encryption.bouncycastle.config.BouncyCastleCryptoModule;
+import org.jclouds.logging.slf4j.config.SLF4JLoggingModule;
import org.jclouds.scriptbuilder.domain.Statement;
import org.jclouds.scriptbuilder.statements.login.AdminAccess;
-import org.jclouds.ssh.jsch.config.JschSshClientModule;
+import org.jclouds.sshj.config.SshjSshClientModule;
import com.google.common.base.Predicates;
import com.google.common.collect.ImmutableSet;
@@ -163,7 +165,8 @@ private static ComputeService initComputeService(String provider, String identit
properties.setProperty("jclouds.ec2.ami-owners", "137112412989");
// example of injecting a ssh implementation
- Iterable<Module> modules = ImmutableSet.<Module> of(new JschSshClientModule());
+ Iterable<Module> modules = ImmutableSet.<Module> of(new SshjSshClientModule(), new SLF4JLoggingModule(),
+ new BouncyCastleCryptoModule());
return new ComputeServiceContextFactory().createContext(provider, identity, credential, modules, properties)
.getComputeService();

0 comments on commit 8fdec4d

Please sign in to comment.