Add back requires on stringtemplate for java subpackage
This is needed because tree/DOTTreeGenerator class uses stringtemplate
3.x classes. However this class is not used in other parts and could
likely be removed. This would produce jar incompatible with upstream
so we should probably avoid doing that.