SBT plugin for NetLogo extension build boilerplate
Scala
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
.gitignore
README.md
build.sbt
scripted.sbt

README.md

NetLogo Extension Plugin

This plugin provides common build boilerplate for NetLogo 5.3.1 and later extensions. For versions before 5.3.1, please refer to version 2.2_5.3

Currently, the plugin targets SBT 1.x (use v3.1 for SBT 0.13).

Building

Simply run the package SBT command to build a new version of the plugin .jar. Then, set your SBT project's plugins.sbt to reference/fetch the .jar.

Usage

For an example usage of this plugin, please see the NetLogo extension activator template's plugins.sbt and build.sbt.

Project Files

project/plugins.sbt

resolvers += Resolver.url(
  "NetLogo-JVM",
    url("http://dl.bintray.com/content/netlogo/NetLogo-JVM"))(
        Resolver.ivyStylePatterns)

addSbtPlugin("org.nlogo" % "netlogo-extension-plugin" % "3.2")

build.sbt

enablePlugins(org.nlogo.build.NetLogoExtension)

netLogoVersion      := "6.0.2"

netLogoClassManager := "HelloScalaExtension"

netLogoExtName      := "helloscala"

netLogoZipSources   := false

Building to Base Directory

By default, the NetLogo Extension Plugin builds a zip file containing all artifacts. If you would like it to extract the sbt base directory instead, you can use:

netLogoTarget := org.nlogo.build.NetLogoExtension.directoryTarget(baseDirectory.value)

Terms of Use

CC0

The NetLogo Extension plugin is in the public domain. To the extent possible under law, Uri Wilensky has waived all copyright and related or neighboring rights.