Maven building only changed files

前端 未结 7 966
Happy的楠姐
Happy的楠姐 2020-12-13 01:59

Lets say i have module structure like below

     Modules
       ->utils
       ->domain
       ->client
       ->services
       ->deploy (th         


        
7条回答
  •  爱一瞬间的悲伤
    2020-12-13 02:38

    The question and the answers posted so far do not take the dependency tree into account. What if the utils module is changed? We need to rebuild (retest at least) it and all the modules depending on it.

    Ways to do so:

    • https://github.com/avodonosov/hashver-maven-plugin/
    • https://github.com/vackosar/gitflow-incremental-builder/
    • Gradle Enterprise is a commercial service which provides build cache, in particular for maven
    • Migrate to newer build tools like Gradle or Bazel which support build caches out of box.

提交回复
热议问题