Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 8478eaf

Browse files
committed
Allow the dev deployment to be run using 'sbt run'
1 parent f28dbd4 commit 8478eaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deployment-files/plugin-dev/build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
name := "ChatOverflow"
1010
version := "0.3"
1111

12+
// This task has to be overwritten, because sbt will only look in source files for main classes, but the class is in a jar.
13+
Compile / discoveredMainClasses := Seq("org.codeoverflow.chatoverflow.Launcher")
14+
1215
// One version for all sub projects. Use "retrieveManaged := true" to download and show all library dependencies.
1316
val scalaMajorVersion = "2.12"
1417
val scalaMinorVersion = ".5"
@@ -47,4 +50,5 @@ fetch := new PluginUtility(streams.value.log).fetchPluginsTask(pluginFolderNames
4750
pluginTargetFolderNames.value, apiProjectPath.value)
4851
copy := new PluginUtility(streams.value.log).copyPluginsTask(pluginFolderNames.value, pluginTargetFolderNames.value, scalaMajorVersion)
4952

50-
packageBin / includePom := false
53+
packageBin / includePom := false
54+
fork in run := true // Start ChatOverflow in it's own java process when starting it with 'sbt run'

0 commit comments

Comments
 (0)