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

Commit bd3d5bf

Browse files
committed
Add a generic task to get the major and minor scala version
1 parent 0476593 commit bd3d5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment-files/plugin-dev/keys.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ lazy val copy = TaskKey[Unit]("copy", "Copies all packaged plugin jars to the ta
2929

3030
// Tasks
3131

32+
import org.codeoverflow.chatoverflow.build.BuildUtils.scalaMajorVersion
3233
import org.codeoverflow.chatoverflow.build.plugins.{PluginCreateWizard, PluginUtility}
3334

3435
create := new PluginCreateWizard(streams.value.log).createPluginTask(pluginFolderNames.value, PluginCreateWizard.getApiVersion.value)
3536
fetch := new PluginUtility(streams.value.log).fetchPluginsTask(pluginFolderNames.value, pluginBuildFileName.value,
3637
pluginTargetFolderNames.value, apiProjectPath.value)
37-
copy := new PluginUtility(streams.value.log).copyPluginsTask(pluginFolderNames.value, pluginTargetFolderNames.value,
38-
scalaVersion.value.split('.').dropRight(1).mkString("."))
38+
copy := new PluginUtility(streams.value.log).copyPluginsTask(pluginFolderNames.value, pluginTargetFolderNames.value, scalaMajorVersion.value)

0 commit comments

Comments
 (0)