In sbt, projects are another installation axis (along with configurations and tasks). Thus, you can use the operator into access the parameter value in another project. To get the value of the installation key baseDirectoryin the project full, you should write
(baseDirectory in full).value
Therefore, your full parameter javaSourceshould be:
javaSource in Compile := (baseDirectory in full).value / "foo" / "src"
See the Area documentation in sbt for the entire story.
( , settings Project , . , .)