Full details at StackOverflow question here.
Essentially, the C plugin defaults to naming an executable whatever you name its closure under components. Hence if I have:
model {
components {
derpus(NativeExecutableSpec) {
...
}
Then this will create derpus.exe (on Windows). If I want this executable to be versioned I can use the baseName component property. However something weird is happening where a specified version variable is being truncated (seems to be dropping trailing version segment and any trailing zeros from the version number).
Hence if I specify baseName = "derpus-${version}", then if:
-
version=3.0,baseNameresolves to3 -
version=3.0.5,baseNameis still3(drops the last segment and any trailing zeros) -
version=3.0.5.1,baseNameis now3.0.5 -
version=3.1.5,baseNameis now3.1
Weird. Again, read SO question for all details and reproducing, etc.