I'm currently trying to refactor a project from play 2.5 to play 2.6. Therefore I want to upgrade aether-deploy from 0.17 to 0.20
The config for 0.17 was this one:
publishTo <<= version { (v: String) =>
val repoName = sys.props.get("repo.name")
val repoUrl = sys.props.get("repo.url")
if (repoName.isDefined && repoUrl.isDefined)
Some(repoName.get at repoUrl.get)
else
Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.ivy2/local")))
}
For 0.20 I refactored it to be:
publishTo := {
val repoName = sys.props.get("repo.name")
val repoUrl = sys.props.get("repo.url")
if (repoName.isDefined && repoUrl.isDefined) {
Some(repoName.get at repoUrl.get)
} else {
Some(Opts.resolver.mavenLocalFile)
}
}
But it creates a error when setting no system properties:
The configured repo MUST be a maven repo, but was: FileRepository
I'm currently trying to refactor a project from play 2.5 to play 2.6. Therefore I want to upgrade aether-deploy from 0.17 to 0.20
The config for 0.17 was this one:
For 0.20 I refactored it to be:
But it creates a error when setting no system properties:
The configured repo MUST be a maven repo, but was: FileRepository