@@ -65,7 +65,7 @@ libraryDependencies += "net.dv8tion" % "JDA" % "3.8.3_463"
6565libraryDependencies += " com.fazecast" % " jSerialComm" % " [2.0.0,3.0.0)"
6666
6767// Socket.io
68- libraryDependencies += " io.socket" % " socket.io-client" % " 1.0.0"
68+ libraryDependencies += " io.socket" % " socket.io-client" % " 1.0.0"
6969// ---------------------------------------------------------------------------------------------------------------------
7070// PLUGIN FRAMEWORK DEFINITIONS
7171// ---------------------------------------------------------------------------------------------------------------------
@@ -83,6 +83,7 @@ lazy val fetch = TaskKey[Unit]("fetch", "Searches for plugins in plugin director
8383lazy val copy = TaskKey [Unit ](" copy" , " Copies all packaged plugin jars to the target plugin folder." )
8484lazy val bs = TaskKey [Unit ](" bs" , " Updates the bootstrap project with current dependencies and chat overflow jars." )
8585lazy val deploy = TaskKey [Unit ](" deploy" , " Prepares the environment for deployment, fills deploy folder." )
86+ lazy val deployDev = TaskKey [Unit ](" deployDev" , " Prepares the environment for plugin developers, fills deployDev folder." )
8687lazy val gui = TaskKey [Unit ](" gui" , " Installs GUI dependencies and builds it using npm." )
8788
8889pluginBuildFileName := " plugins.sbt"
@@ -97,6 +98,7 @@ fetch := BuildUtility(streams.value.log).fetchPluginsTask(pluginFolderNames.valu
9798copy := BuildUtility (streams.value.log).copyPluginsTask(pluginFolderNames.value, pluginTargetFolderNames.value, scalaMajorVersion)
9899bs := BootstrapUtility .bootstrapGenTask(streams.value.log, s " $scalaMajorVersion$scalaMinorVersion" , getDependencyList.value)
99100deploy := BootstrapUtility .prepareDeploymentTask(streams.value.log, scalaMajorVersion)
101+ deployDev := BootstrapUtility .prepareDevDeploymentTask(streams.value.log, scalaMajorVersion, apiProjectPath.value, libraryDependencies.value.toList)
100102gui := BuildUtility (streams.value.log).guiTask(guiProjectPath.value, streams.value.cacheDirectory / " gui" )
101103
102104Compile / packageBin := {
@@ -111,6 +113,7 @@ Compile / unmanagedJars := (crossTarget.value ** "chatoverflow-gui*.jar").classp
111113// ---------------------------------------------------------------------------------------------------------------------
112114
113115// Util task for bs, gets a dependency list kinda like "sbt dependencyList", but only includes deps required for runtime
116+ // Filters out all chatoverflow modules, because those are not actual dependencies.
114117lazy val getDependencyList = Def .task[List [ModuleID ]] {
115118 // only get deps required for runtime and not for anything else like testing
116119 val updateReport = update.value.configuration(ConfigRef (" runtime" ))
@@ -119,6 +122,8 @@ lazy val getDependencyList = Def.task[List[ModuleID]] {
119122 List ()
120123 } else {
121124 updateReport.get.modules.map(m => m.module).toList
125+ .filterNot(m => m.name == s " chatoverflow-api_ $scalaMajorVersion" ||
126+ m.name == s " chatoverflow_ $scalaMajorVersion" )
122127 }
123128}
124129
0 commit comments