Skip to content

Commit a6b0c8d

Browse files
Upgrade to extension plugin version 3
1 parent 5435471 commit a6b0c8d

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

build.sbt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,5 @@ netLogoTarget :=
1212
javacOptions ++= Seq("-g", "-deprecation", "-Xlint:all", "-Xlint:-serial", "-Xlint:-path",
1313
"-encoding", "us-ascii")
1414

15-
val netLogoJarURL =
16-
Option(System.getProperty("netlogo.jar.url")).getOrElse("http://ccl.northwestern.edu/netlogo/5.3.0/NetLogo.jar")
17-
18-
val netLogoJarOrDependency: Seq[Def.Setting[_]] = {
19-
import java.io.File
20-
import java.net.URI
21-
if (netLogoJarURL.startsWith("file:"))
22-
Seq(unmanagedJars in Compile += new File(new URI(netLogoJarURL)))
23-
else
24-
Seq(libraryDependencies += "org.nlogo" % "NetLogo" % "5.3.0" from netLogoJarURL)
25-
}
26-
27-
netLogoJarOrDependency
15+
netLogoVersion := "6.0-M1"
2816

project/plugins.sbt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
addSbtPlugin("org.nlogo" % "netlogo-extension-plugin" % "2.4_5.3-M1" from
2-
"https://github.com/NetLogo/NetLogo-Extension-Plugin/releases/download/v2.4-M1_5.3.x/netlogo-extension-plugin-2.4-M1_5.3.x.jar")
1+
resolvers += Resolver.url(
2+
"NetLogo-JVM",
3+
url("http://dl.bintray.com/content/netlogo/NetLogo-JVM"))(
4+
Resolver.ivyStylePatterns)
5+
6+
addSbtPlugin("org.nlogo" % "netlogo-extension-plugin" % "3.0")

0 commit comments

Comments
 (0)