gradle template: use Constants instead of hard-coding them

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>