本文整理汇总了Scala中scala.tools.nsc.Properties类的典型用法代码示例。如果您正苦于以下问题:Scala Properties类的具体用法?Scala Properties怎么用?Scala Properties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Properties类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Scala代码示例。
示例1: HazelcastBuild
//设置package包名称以及导入依赖的类
import sbt.Keys._
import sbt._
import scala.tools.nsc.Properties
object HazelcastBuild extends Build {
import Dependencies._
import Settings._
import Versions._
val commonDeps = Seq(
hazelcastClient,
spark,
jcache,
junit,
junitInterface
)
lazy val hazelcastSpark = Project(
buildName,
file("."),
settings = buildSettings ++ Seq(
libraryDependencies ++= commonDeps,
publishArtifact in Test := false,
crossPaths := false,
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
credentials += Credentials(file(sys.env.getOrElse("deployCredentials", Properties.userHome + "/.ivy2/.credentials"))),
ivyXML := <dependencies>
<dependency org="com.hazelcast" name="hazelcast" rev={hazelcastVersion} conf="compile->default(compile);provided->default(compile);test->default(compile)">
<artifact name="hazelcast" type="jar" ext="jar" conf="compile"/>
<artifact name="hazelcast" type="jar" ext="jar" conf="test" e:classifier="tests"/>
</dependency>
</dependencies>
)
)
}