fix gradle evaluation order problem