Fix samples which resolve configuration eagerly (#6620)Previously we have several samples which resolve configurations eagerly at configuration phase. This is extremely terrible given that people usually copy code snippets from our samples. This PR fixes them by resolving these configurations lazily. Also, these samples can't benefit from our mirror infrastructure because mirrors take effect in `afterEvaluate{}` block.