title: Using lettuce 4.4 with play framework 2.5.5
body: <p>I am trying to use lettuce version 4.4 as a Redis client library in a play framework 2.5.5 project. Looks like there are some compatibility issues with the netty versions used by play 2.5.5 and lettuce 4.4.</p>
  
  <p>I am seeing a <code>java.nio.channels.UnresolvedAddressException</code> while redis client is attempting to connect to a locally installed redis server. I've ensured that the redis server is running fine. Also, I am able to connect to redis using lettuce 4.4 from an independent maven based java project.</p>
  
  <p>To troubleshoot the issue, I have reproduced the problem in the independent maven  project by specifying netty dependency explicitly as follows:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.netty&lt;/groupId&gt;
      &lt;artifactId&gt;netty-all&lt;/artifactId&gt;
      &lt;version&gt;4.0.20.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And I am able to resolve the issue in the maven project by using the shaded-jar where dependencies are relocated to <code>com.lambdaworks</code> package to avoid version conflicts, as mentioned in <a href="https://github.com/lettuce-io/lettuce-core#binariesdownload" rel="nofollow noreferrer">https://github.com/lettuce-io/lettuce-core#binariesdownload</a>. To use the shaded jar, 'classifier' property is added to the lettuce dependency definition with value 'shaded', and also a list of exclusions are specified. How do I achieve the same using build.sbt?</p>
  
  <p>As per <a href="http://www.scala-sbt.org/0.13/docs/Library-Management.html#Exclude+Transitive+Dependencies" rel="nofollow noreferrer">http://www.scala-sbt.org/0.13/docs/Library-Management.html#Exclude+Transitive+Dependencies</a>, I can specify exclusions in build.sbt, but not sure how to set classifier property. With just the list of exclusions, it does not seem to work.</p>