Playframework(14)Publish the Dist Binary
Here is the project/Build.scala
import sbt._
import sbt.Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = “projectName"
val appVersion = "1.0-SNAPSHOT"
lazy val distSettings = Seq[Setting[_]] (
// Type of the Artifact : zip
// Extension of the Artifact : zip
artifact in dist <<= moduleName(n => Artifact(n, "zip", "zip"))
) ++ Seq(addArtifact(artifact in (Compile, dist), dist).settings: _*)
val appDependencies = Seq(
// Add your project dependencies here,
"mysql" % "mysql-connector-java" % "5.1.13",
"net.sf.jasperreports" % "jasperreports" % "5.1.0",
"org.apache.poi" % "poi" % "3.9",
"commons-logging" % "commons-logging" % "1.1.2",
"commons-digester" % "commons-digester" % "2.1",
"commons-collections" % "commons-collections" % "3.2.1",
"org.springframework" % "spring-core" % "3.2.2.RELEASE",
"org.springframework" % "spring-beans" % "3.2.2.RELEASE",
"com.lowagie" % "itext" % "4.2.0",
"org.codehaus.groovy" % "groovy-all" % "2.1.3",
"org.scalaquery" % "scalaquery_2.9.0-1" % "0.9.5",
"c3p0" % "c3p0" % "0.9.1.2",
"mysql" % "mysql-connector-java" % "5.1.25",
"org.scalatest" %% "scalatest" % "1.8" % "test"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA
,settings = Defaults.defaultSettings ++ distSettings
).settings(
// Add your own project settings here
testOptions in Test := Nil,
// Optional
// Disable jar for this project (useless)
//publishArtifact in (Compile, packageBin) := false,
// Disable scaladoc generation for this project (useless)
//publishArtifact in (Compile, packageDoc) := false,
// Disable source jar for this project (useless)
//publishArtifact in (Compile, packageSrc) := false,
resolvers += “sillycat repo" at "http://repository.sillycat.com/artifactory/sillycat-dev",
credentials += Credentials("Artifactory Realm", "repository.sillycat.com", “sillycat", “password"),
publishTo := Some(“Sillycat Artifactory Dev" at "http://repository.sillycat.com/artifactory/sillycat-dev/")
)
}
The command will publish the zip and the jar
>sbt clean update compile package dist publish
References:
http://blog.dlecan.com/how-to-publish-play-framework-v2-dist-package/
- 浏览: 2491999 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
IOS应用源码之【类库与框架】-Connection Kit-A framework to publish via HTTP, FTP, SFTP, WebDAV, .Mac and to Amazon S3.rar
将Elasticsearch集成到您的Play... $ git clone https://github.com/eduardofcbg/playframework2-elasticsearch.git$ cd playframework2-elasticsearch$ sbt publish-local 在您的项目上,添加以下依赖项声明: ...
【类库与框架】★★★★★-Connection Kit-A framework to publish via HTTP, FTP【类库与框架】★★★★★-Connection Kit-A framework to publish via HTTP, FTP 1.适合学生学习研究参考 2.适合个人学习研究参考 3...
IOS应用源码之【类库与框架】Connection Kit-A framework to publish via HTTP, FTP, SFTP, WebDAV, .Mac and to Amazon S3
publish over ssh 1.17 最新版本
Jenkins的插件svn publisher(Publish to Subversion repository)
How to write and publish a scientific paper ContentsChapter 1 What Is Scientific Writing? Chapter 2 Origins of Scientific Writing Chapter 3 What Is a Scientific Paper? Chapter 4 How to Prepare the ...
XML publish 创建 XML publish 创建 XML publish 创建
Introduction of publish/subscriber system
Publish Over SSH插件使用 在使用Publish Over SSH之前,需要制作SSH私钥。机器间做免密登录配置。假设机器A,ip为192.168.AA.AAA,机器B: 192.168.BB.BBB,机器A能够免密登录机器B,机器B能够免密登录机器A,制作方式是...
CCN网络资料,用于具体的CCN网络的架构
本教程详细的介绍了如何对EZ Publish进行模板重设系统。
[Publish]Android程序员指南.zip [Publish]Android程序员指南.zip
这是一个非常简单的工具,用于选择npm publish应该使用的dist标签。 该工具没有配置...,很可能会保持这种状态。 我认为缺少配置是一项功能。 配置很容易搞砸。 而且,该工具当然不支持dist标签的所有可能用法。 ...
本教程详细的介绍了EZ Publish安装包的使用方法,如:如何创建安装包,如何导入导出安装包,以及如何安装卸载安装包等等信息。
H5 ping the font滚动条显示在页面 publish 应用范围。
ReactiveMongo Play框架这是 2.5、2.6和2.7的模块,支持 –一种针对MongoDB的React性,异步且无阻塞的Scala驱动程序... sbt publish-local要运行测试,请使用: sbt test从Play 2.4开始,需要JDK 1.8+才能构建此插件。
博客由Playframework提供支持的博客建立资料库 CREATE TABLE `articles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(245) DEFAULT NULL, `content` text, `publish_time` datetime DEFAULT NULL, `...
How to Write & Publish a Scientific Paper,教你怎样发布期刊,硕博士极力推荐
in-publish, 检测我们是否以 `npm publish`的结果运行 发布中的有关背景,请参见 npm#10074 。检测我们是否以 npm publish的结果运行。 这is让你轻松地拥有prepublish生命周期脚本,在运行 npm install 时不会运行。...