zoukankan      html  css  js  c++  java
  • RT: np

    np - new sbt project generation made simple(r)

    As pointed out in the comments by @0__ below, there's another project that aims at simplifying how new projects in sbt are created - np. That seems exactly what you needed.

    In https://github.com/softprops/np#for-sbt-013 there's a complete description of what's needed to set it up and create new sbt projects using the utility that boils down to:

    1. Registering the sbt plugin. Add the following to ~/.sbt/0.13/plugins/np.sbt.

      addSbtPlugin("me.lessis" % "np" % "0.2.0")
      
    2. Define a custom global overrides in ~/.sbt/0.13/np.sbt. Add the following to the file.

      seq(npSettings:_*)
      
      (NpKeys.defaults in (Compile, NpKeys.np)) ~= {
        _.copy(org="me.lessis", version="0.1.0-SNAPSHOT")
      }
      
    3. Use the np plugin's command - np. Create an empty directory for the sbt project and run sbt np.

      jacek:~/sandbox/stackoverflow
      $ mkdir np-sandbox/
      jacek:~/sandbox/stackoverflow
      $ cd np-sandbox/
      jacek:~/sandbox/stackoverflow/np-sandbox
      $ sbt np
      [info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins
      [info] Set current project to np-sandbox (in build file:/Users/jacek/sandbox/stackoverflow/np-sandbox/)
      [info] Generated build file
      [info] Generated source directories
      [success] Total time: 0 s, completed Dec 7, 2013 12:51:42 PM
      jacek:~/sandbox/stackoverflow/np-sandbox
      $ tree
      .
      ├── build.sbt
      ├── src
      │   ├── main
      │   │   ├── resources
      │   │   └── scala
      │   └── test
      │       ├── resources
      │       └── scala
      └── target
          └── streams
              └── compile
                  └── np
                      └── $global
                          └── out
      
      12 directories, 2 files
      jacek:~/sandbox/stackoverflow/np-sandbox
      $ cat build.sbt
      organization := "me.lessis"
      
      name := "default"
      
      version := "0.1.0-SN
  • 相关阅读:
    Programming Collecive Intelligence 笔记 Making Recommendations
    Managing Gigabytes文本压缩
    Hadoop The Definitive Guide 笔记二
    POS Tagging with NLTK
    MG查询
    MG索引构造
    对SharePoint 2010的job failover的一些比较深入的说明
    SharePoint 2010中Search功能的数据库连接字符串在哪里?
    记解决一个数据库删不掉的问题
    SharePoint升级失败?
  • 原文地址:https://www.cnblogs.com/qiangxia/p/4953091.html
Copyright © 2011-2022 走看看