An easy way to get rid of *everything* generated by SBT?

后端 未结 4 1415
情话喂你
情话喂你 2020-12-07 17:10

Is there an easy way to get rid of everything getting generated as a result of performing an SBT build? It turns out it creates target directories all over the place. Perfor

4条回答
  •  误落风尘
    2020-12-07 17:58

    I agree with the very good suggested solutions, personally I include a slight variation as a gnu make task.

    content of Makefile:

    clean:
        find . -name target | xargs rm -fr
    

    and then run:

    make clean
    

    I like using Makefiles as code as documentation.

提交回复
热议问题