build with dependency