Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I have a traditional src/main/scala directory in a Play Application?

I wish to move some of my normal SBT Scala code across to my Play Application. So my first thought was I'll just create a src directory and put it there, but it seems not working.

What is the right way to put normal Scala code into the Scala Play Application?

like image 288
Phil Avatar asked Feb 12 '23 14:02

Phil


1 Answers

Adding

unmanagedSourceDirectories in Compile += baseDirectory.value / "src" / "main" / "scala"

in your build.sbt should do the trick.

like image 130
Igor Rumiha Avatar answered Apr 05 '23 23:04

Igor Rumiha