diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-03 00:45:50 +0300 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-03 10:27:23 +0300 |
commit | 323dd568b61a49c0ac17dbf3ad50098e82c2989b (patch) | |
tree | f67f5f259ff73f4c3a516310bc1d8e342eb56e98 /stage2/SbtDependencyDsl.scala | |
parent | af207e272664720b77b376214292b0c5716fc20b (diff) | |
download | cbt-323dd568b61a49c0ac17dbf3ad50098e82c2989b.tar.gz cbt-323dd568b61a49c0ac17dbf3ad50098e82c2989b.tar.bz2 cbt-323dd568b61a49c0ac17dbf3ad50098e82c2989b.zip |
Convenience factory methods for Resolvers
Diffstat (limited to 'stage2/SbtDependencyDsl.scala')
-rw-r--r-- | stage2/SbtDependencyDsl.scala | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/stage2/SbtDependencyDsl.scala b/stage2/SbtDependencyDsl.scala index d8c0786..4c95308 100644 --- a/stage2/SbtDependencyDsl.scala +++ b/stage2/SbtDependencyDsl.scala @@ -12,32 +12,4 @@ trait SbtDependencyDsl{ self: BasicBuild => def %%(artifactId: String) = new DependencyBuilder2( groupId, artifactId, Some(scalaMajorVersion) ) def %(artifactId: String) = new DependencyBuilder2( groupId, artifactId, None ) } - implicit class DependencyBuilder3(d: MavenDependency){ - def %(classifier: String): MavenDependency = d//.copy(classifier = Classifier(Some(classifier))) - } - - /* - /** SBT-like dependency builder DSL for syntax compatibility */ - implicit class DependencyBuilder0(repository: Maven){ - def %(groupId: String) = new DependencyBuilder1b(repository, groupId) - } - implicit class DependencyBuilder1a(groupId: String){ - def %%(artifactId: String) = new DependencyBuilder2( Maven.central, groupId, artifactId, Some(scalaMajorVersion) ) - def %(artifactId: String) = new DependencyBuilder2( Maven.central, groupId, artifactId, None ) - } - class DependencyBuilder1b(repository: Maven, groupId: String){ - def %%(artifactId: String) = new DependencyBuilder2( repository, groupId, artifactId, Some(scalaMajorVersion) ) - def %(artifactId: String) = new DependencyBuilder2( repository, groupId, artifactId, None ) - } - class DependencyBuilder2( repository: Maven, groupId: String, artifactId: String, scalaMajorVersion: Option[String] ){ - def %(version: String) = scalaMajorVersion.map( - v => repository(groupId, artifactId, version, scalaMajorVersion = v) - ).getOrElse( - repository.java(groupId, artifactId, version) - ) - } - implicit class DependencyBuilder3(d: MavenDependency){ - def %(classifier: String) = d.copy(classifier = Classifier(Some(classifier))) - } - */ }
\ No newline at end of file |