在编译完成后尝试运行一些代码时,我在我的sbt构建中编写了以下内容:
compile in Compile <<= (compile in Compile) map { x=>
// post-compile work
doFoo()
x
}
Run Code Online (Sandbox Code Playgroud)
如果我从命令行运行sbt compile,哪个效果很好,但是当我从IntelliJ IDEA构建时,它不会被执行.
有没有办法让IntelliJ IDEA运行我的后期编译步骤?