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
,baseName
resolves to3
-
version=3.0.5
,baseName
is still3
(drops the last segment and any trailing zeros) -
version=3.0.5.1
,baseName
is now3.0.5
-
version=3.1.5
,baseName
is now3.1
Weird. Again, read SO question for all details and reproducing, etc.