gradle template: declare that we're in the offline build

This was missing between the Ant and Gradle builds

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>