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/
- 浏览: 2539614 次
- 性别:
- 来自: 成都
最新评论
-
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 最新版本
"WORD工具插件_word插件_publish_com办公插件_"就是这样一个专门针对Word设计的插件,它旨在帮助用户更高效地完成日常的文档处理任务。 "publish_com办公插件"部分可能指的是该插件包含出版级别的排版和编辑功能,...
发布-订阅(Publish-Subscribe)模式是一种消息传递机制,它允许发送者(发布者)与接收者(订阅者)之间进行异步通信。在这种模式下,订阅者通过表达对特定类型信息的兴趣来订阅信息,而发布者则负责提供这些信息。...
根据提供的文件内容,可以看出该文档涉及的技术内容主要围绕XMLPUBLISH工具的开发步骤。尽管文档内容显得零散和重复,我们依然可以抽取出一些关键知识点,并结合对XMLPUBLISH工具的理解来进行详细解读。 1. XML...
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 ...
Publish Over SSH插件使用 在使用Publish Over SSH之前,需要制作SSH私钥。机器间做免密登录配置。假设机器A,ip为192.168.AA.AAA,机器B: 192.168.BB.BBB,机器A能够免密登录机器B,机器B能够免密登录机器A,制作方式是...
.NET 4.6是微软.NET Framework的一个版本,它在2015年发布,提供了许多性能改进、新的API和对语言特性的支持,如C# 6和VB.NET 14。 NuGet包用于分发和管理.NET应用程序的依赖项。开发者可以创建自己的包并发布到...
根据提供的文件信息,以下是对《How to Write and Publish a Scientific Paper》一书内容的知识点的详细阐述: 标题:《How to Write and Publish a Scientific Paper》(如何撰写和发表科学论文) 1. 科学写作的...
"Publish to Subversion repository" 插件,即svn publisher插件,是Jenkins为了方便用户将构建结果发布到SVN仓库而设计的一款实用工具。本文将详细介绍这款插件的功能、使用方法以及其在Jenkins工作流中的重要性。 ...
《使用Jenkins进行SSH发布:publish-over-ssh插件详解》 在持续集成与持续部署(CI/CD)的流程中,Jenkins是一款备受推崇的工具。它支持各种自动化任务,包括构建、测试和部署软件。当我们需要将构建产物部署到远程...
这是一个非常简单的工具,用于选择npm publish应该使用的dist标签。 该工具没有配置...,很可能会保持这种状态。 我认为缺少配置是一项功能。 配置很容易搞砸。 而且,该工具当然不支持dist标签的所有可能用法。 ...
languages and want to learn the basics of Python 3 as quickly and directly as possible. Although some basic concepts are covered, there’s no attempt to teach basic programming skills in this book, ...
H5 ping the font滚动条显示在页面 publish 应用范围。