Commit id with `--version`

Report git commit id and modified state with `--version`.

Signed-off-by: 35V LG84 <35vlg84-x4e6b92@e257.fi>
2 jobs for master in 9 minutes and 8 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Test
passed #220170768
test·jdk11

00:07:04

passed #220170769
test·jdk8

00:08:53

99.8%