shunping commented on code in PR #38586:
URL: https://github.com/apache/beam/pull/38586#discussion_r3283099482


##########
settings.gradle.kts:
##########
@@ -18,6 +18,20 @@
 import 
com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
 
 pluginManagement {
+    val mavenCentralMirrorUrl = 
settings.providers.gradleProperty("mavenCentralMirrorUrl").orNull

Review Comment:
   I have to keep the isCi in `pluginManagement`, because it is evaluated 
before the other statements. Otherwise I will get 
   
   ```
   Script compilation error:
   
     Line 28:     val useMirror = isCi && !mavenCentralMirrorUrl.isNullOrBlank()
                                  ^ Unresolved reference: isCi
   
   1 error
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to