Uniformly frustrated Josephson junction array in trapped Bose-Einstein condensates