@@ -70,18 +70,6 @@ lazy val pluginFolderNames = settingKey[List[String]]("The folder names of all p
7070lazy val pluginTargetFolderNames = settingKey[List [String ]](" The folder names of compiled and packaged plugins. Remember to gitignore these!" )
7171lazy val apiProjectPath = settingKey[String ](" The path to the api sub project. Remember to gitignore it!" )
7272
73- // Util task for bs, gets a dependency list kinda like "sbt dependencyList", but only includes deps required for runtime
74- lazy val getDependencyList = Def .task[List [ModuleID ]] {
75- // only get deps required for runtime and not for anything else like testing
76- val updateReport = update.value.configuration(ConfigRef (" runtime" ))
77-
78- if (updateReport.isEmpty) {
79- List ()
80- } else {
81- updateReport.get.modules.map(m => m.module).toList
82- }
83- }
84-
8573// Plugin framework tasks
8674lazy val create = TaskKey [Unit ](" create" , " Creates a new plugin. Interactive command using the console." )
8775lazy val fetch = TaskKey [Unit ](" fetch" , " Searches for plugins in plugin directories, builds the plugin build file." )
@@ -99,4 +87,20 @@ fetch := BuildUtility(streams.value.log).fetchPluginsTask(pluginFolderNames.valu
9987 pluginTargetFolderNames.value, apiProjectPath.value)
10088copy := BuildUtility (streams.value.log).copyPluginsTask(pluginFolderNames.value, pluginTargetFolderNames.value, scalaMajorVersion)
10189bs := BootstrapUtility .bootstrapGenTask(streams.value.log, s " $scalaMajorVersion$scalaMinorVersion" , getDependencyList.value)
102- deploy := BootstrapUtility .prepareDeploymentTask(streams.value.log, scalaMajorVersion)
90+ deploy := BootstrapUtility .prepareDeploymentTask(streams.value.log, scalaMajorVersion)
91+
92+ // ---------------------------------------------------------------------------------------------------------------------
93+ // UTIL
94+ // ---------------------------------------------------------------------------------------------------------------------
95+
96+ // Util task for bs, gets a dependency list kinda like "sbt dependencyList", but only includes deps required for runtime
97+ lazy val getDependencyList = Def .task[List [ModuleID ]] {
98+ // only get deps required for runtime and not for anything else like testing
99+ val updateReport = update.value.configuration(ConfigRef (" runtime" ))
100+
101+ if (updateReport.isEmpty) {
102+ List ()
103+ } else {
104+ updateReport.get.modules.map(m => m.module).toList
105+ }
106+ }
0 commit comments