gradle template: use Constants instead of hard-coding them

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Merge pull request #556 from fhuberts/fix-Constants

gradle template: use Constants instead of hard-coding them