Simon Van Mierlo 6c86df709d netlogo variant 7 years ago
..
project 6c86df709d netlogo variant 7 years ago
src 6c86df709d netlogo variant 7 years ago
.gitignore 6c86df709d netlogo variant 7 years ago
README.md 6c86df709d netlogo variant 7 years ago
build.sbt 6c86df709d netlogo variant 7 years ago
scripted.sbt 6c86df709d netlogo variant 7 years ago

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.