本文整理汇总了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>
)
)
}
开发者ID:hazelcast,项目名称:hazelcast-spark,代码行数:44,代码来源:HazelcastBuild.scala
注:本文中的scala.tools.nsc.Properties类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论