SBT should require a project/build.properties or some other mechanism to avoid assuming any directory is a valid project.
See original GitHub issueThis is more of a nice to have (and I don’t think there is an issue on this), but if you start SBT
in a folder which isn’t a valid SBT
project, SBT
should either delete the target
folder on shutdown, or not create it in the first place
The former I think is more realistic. This just came out because I always have a habit of starting SBT in the wrong place, and it always leaves behind target
folders.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Issues · sbt/sbt - GitHub
SBT should require a project/build.properties or some other mechanism to avoid assuming any directory is a valid project. Enhancement uncategorized Used for ...
Read more >Specify different version of sbt for a subproject in multi-project?
I put build.properties with that version into its directory but it didn't change the version of sbt for this project. How do I...
Read more >sbt Reference Manual — Combined Pages
To create an sbt project, you'll need to take these steps: ... From a different shell or in your file manager create in...
Read more >sbt/sbt - Gitter
I am writing a SBT Plugin. and my goal is that both Scala 2.11 and Scala.212 projects should be able to use my...
Read more >The basics of the build.sbt - Medium
Whenever you or someone on your team start the project, sbt will check the version in project/build.properties . (Both the directory project ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Such a prompt could also suggest
sbt new
as an alternative, as per discussion at #6772On another note, there are SBT tasks from SBT plugins that are out there that don’t need a SBT project to be relevant. A good example is https://github.com/xerial/sbt-sonatype, which provides a
sonatypeRelease
task that promotes all of your current sonatype libraries from staging to release (this doesn’t need to be done in any relevant SBT project)