import scala.util.Properties

credentials ++= { 
  (for {
  username <- Properties.envOrNone("NEXUS_USERNAME")
  password <- Properties.envOrNone("NEXUS_PASSWORD")
} yield 
  Credentials(
    "Sonatype Nexus Repository Manager", 
    "oss.sonatype.org", 
    username, 
    password
  )).toSeq
}

import scala.util.Properties

credentials ++= { 
  (for {
  username <- Properties.envOrNone("NEXUS_USERNAME")
  password <- Properties.envOrNone("NEXUS_PASSWORD")
} yield 
  Credentials(
    "Sonatype Nexus Repository Manager", 
    "nye.java.no", 
    username, 
    password
  )).toSeq
}

Make sure we are using the correct host
Make sure we are using the correct host
