Re: versioning by hashes to speedup multi-module build (a'la nix package manager)

2020-02-01 Thread Konrad Windszus
Hi,
just look at http://maven.apache.org/maven-ci-friendly.html.
Konrad


> Am 01.02.2020 um 16:08 schrieb Anton Vodonosov :
> 
> Hello.
> 
> In order to speed up the build of a big multi-module project,
> I'd like to reuse the artifacts of modules that haven't changed.
> Manual versioning is tedious and error-prone.
> 
> Is it possible to automatically assign versions so that
> versions only change if module sources or dependencies change?
> In result, only those modules will be recompiled and retested,
> and all other modules will be reused from artifact repository.
> 
> For example, this could be done if versions are computed as
> hash-of( hash-of(module sources) + hashes of all dependencies).
> 
> In this approach, every change in code will modify such
> hash-based version of all dependent modules automatically.
> 
> This would be similar to Nix package manager.
> 
> How such things (has based or to do that in maven?
> 
> Best regards,
> - Anton  
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


versioning by hashes to speedup multi-module build (a'la nix package manager)

2020-02-01 Thread Anton Vodonosov
Hello.

In order to speed up the build of a big multi-module project,
I'd like to reuse the artifacts of modules that haven't changed.
Manual versioning is tedious and error-prone.

Is it possible to automatically assign versions so that
versions only change if module sources or dependencies change?
In result, only those modules will be recompiled and retested,
and all other modules will be reused from artifact repository.

For example, this could be done if versions are computed as
hash-of( hash-of(module sources) + hashes of all dependencies).

In this approach, every change in code will modify such
hash-based version of all dependent modules automatically.

This would be similar to Nix package manager.

How such things (has based or to do that in maven?

Best regards,
- Anton  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org