You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
As said in #96 (comment) the /project directory requires a cleanup. The directory currently consists of 14 files which is just too much for one directory. #103 lowers that to 13 by merging assembly.sbt and plugins.sbt into one file.
We should reduce the count of files in one directory to make the folder structure more clear e.g. by using packages. The problem with that is that we need to move the source files into the actual sbt sources root that is located at /project/src/main/scala.
Sbt has no problem with this and is working fine even with the use of packages, but the IntelliJ IDEA Scala plugin doesn't register that the sources root has moved to that directory and always thinks that it is at /project. This means that IntelliJ creates new files with the wrong package always starting with src.main.scala and always wants to auto-"correct" the packages in existing source files.
A solution to that problem might be to have a sbt project in some directory inside the repo root that is adding the sbt api to it's dependencies and to then import that project inside the /project/plugins.sbt file.
Also we currently have two methods that get all files inside a directory and all following sub-directories:
We should either agree on one method and get rid of the other one or create a utils object with methods such these, because they are pretty generic and may be reused by other parts of our build code.
Description
As said in #96 (comment) the
/projectdirectory requires a cleanup. The directory currently consists of 14 files which is just too much for one directory. #103 lowers that to 13 by mergingassembly.sbtandplugins.sbtinto one file.We should reduce the count of files in one directory to make the folder structure more clear e.g. by using packages. The problem with that is that we need to move the source files into the actual sbt sources root that is located at
/project/src/main/scala.Sbt has no problem with this and is working fine even with the use of packages, but the IntelliJ IDEA Scala plugin doesn't register that the sources root has moved to that directory and always thinks that it is at
/project. This means that IntelliJ creates new files with the wrong package always starting withsrc.main.scalaand always wants to auto-"correct" the packages in existing source files.A solution to that problem might be to have a sbt project in some directory inside the repo root that is adding the sbt api to it's dependencies and to then import that project inside the
/project/plugins.sbtfile.Also we currently have two methods that get all files inside a directory and all following sub-directories:
chatoverflow/project/APIUtility.scala
Lines 92 to 94 in dd05183
chatoverflow/project/BuildUtility.scala
Lines 242 to 248 in dd05183
We should either agree on one method and get rid of the other one or create a utils object with methods such these, because they are pretty generic and may be reused by other parts of our build code.