`
sillycat
  • 浏览: 2551673 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Playframework(14)Publish the Dist Binary

 
阅读更多

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/



分享到:
评论

相关推荐

    Connection Kit-A framework to publish

    IOS应用源码之【类库与框架】-Connection Kit-A framework to publish via HTTP, FTP, SFTP, WebDAV, .Mac and to Amazon S3.rar

    playframework2-elasticsearch:适用于Elasticsearch 1.6的PlayFramework 2.4模块

    将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【类库与框架】★★★★★-Connection Kit-A framework to publish via HTTP, FTP 1.适合学生学习研究参考 2.适合个人学习研究参考 3...

    IOS源码之Connection Kit-A framework to publish via HTTP.. to Amazon

    IOS应用源码之【类库与框架】Connection Kit-A framework to publish via HTTP, FTP, SFTP, WebDAV, .Mac and to Amazon S3

    publish over ssh 1.17 最新版本

    publish over ssh 1.17 最新版本

    EZ Publish安装包的使用详解

    ### EZ Publish安装包的使用详解 #### 一、概述 EZ Publish是一款强大的开源内容管理系统(Content Management System, CMS),被广泛应用于构建和管理各种类型的网站。本文档旨在详细介绍EZ Publish安装包的使用...

    WORD工具插件_word插件_publish_com办公插件_

    "WORD工具插件_word插件_publish_com办公插件_"就是这样一个专门针对Word设计的插件,它旨在帮助用户更高效地完成日常的文档处理任务。 "publish_com办公插件"部分可能指的是该插件包含出版级别的排版和编辑功能,...

    The Publish-Subscribe Internet Routing paradigm

    发布-订阅(Publish-Subscribe)模式是一种消息传递机制,它允许发送者(发布者)与接收者(订阅者)之间进行异步通信。在这种模式下,订阅者通过表达对特定类型信息的兴趣来订阅信息,而发布者则负责提供这些信息。...

    XMLPUBLISH开发步骤.pdf

    根据提供的文件内容,可以看出该文档涉及的技术内容主要围绕XMLPUBLISH工具的开发步骤。尽管文档内容显得零散和重复,我们依然可以抽取出一些关键知识点,并结合对XMLPUBLISH工具的理解来进行详细解读。 1. XML...

    How_to_write_and_publish_a_scientific_paper

    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 ...

    app.publish.rar|app.publish.rar

    .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》一书内容的知识点的详细阐述: 标题:《How to Write and Publish a Scientific Paper》(如何撰写和发表科学论文) 1. 科学写作的...

    jenkins中通过Publish Over SSH插件将项目部署到远程机器上的讲解说明

    Publish Over SSH插件使用 在使用Publish Over SSH之前,需要制作SSH私钥。机器间做免密登录配置。假设机器A,ip为192.168.AA.AAA,机器B: 192.168.BB.BBB,机器A能够免密登录机器B,机器B能够免密登录机器A,制作方式是...

    Publish to Subversion repository

    "Publish to Subversion repository" 插件,即svn publisher插件,是Jenkins为了方便用户将构建结果发布到SVN仓库而设计的一款实用工具。本文将详细介绍这款插件的功能、使用方法以及其在Jenkins工作流中的重要性。 ...

    publish-over-ssh.rar

    《使用Jenkins进行SSH发布:publish-over-ssh插件详解》 在持续集成与持续部署(CI/CD)的流程中,Jenkins是一款备受推崇的工具。它支持各种自动化任务,包括构建、测试和部署软件。当我们需要将构建产物部署到远程...

    simple-dist-tag:这是一个非常简单的工具,用于选择“ npm publish”应使用的dist标签。

    这是一个非常简单的工具,用于选择npm publish应该使用的dist标签。 该工具没有配置...,很可能会保持这种状态。 我认为缺少配置是一项功能。 配置很容易搞砸。 而且,该工具当然不支持dist标签的所有可能用法。 ...

    The Quick Python Book PUBLISH

    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 滚动条显示在页面 publish 应用范围

    H5 ping the font滚动条显示在页面 publish 应用范围。

Global site tag (gtag.js) - Google Analytics