forked from NetLogo/Python-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
27 lines (21 loc) · 1.02 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import org.nlogo.build.{ NetLogoExtension, ExtensionDocumentationPlugin }
enablePlugins(NetLogoExtension, ExtensionDocumentationPlugin)
version := "0.5.1"
isSnapshot := true
scalaVersion := "2.12.12"
scalaSource in Test := baseDirectory.value / "src" / "test"
scalaSource in Compile := baseDirectory.value / "src" / "main"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings", "-Xlint")
netLogoVersion := "6.2.2"
netLogoClassManager := "org.nlogo.extensions.py.PythonExtension"
netLogoExtName := "py"
netLogoPackageExtras += (baseDirectory.value / "src" / "pyext.py", None)
Compile / packageBin / artifactPath := {
val oldPath = (Compile / packageBin / artifactPath).value.toPath
val newPath = oldPath.getParent / s"${netLogoExtName.value}.jar"
newPath.toFile
}
resolvers += "netlogo-language-library" at "https://dl.cloudsmith.io/public/netlogo/language-library/maven"
libraryDependencies ++= Seq(
"org.nlogo.languagelibrary" %% "language-library" % "1.1.0"
)